Skip to content

Instantly share code, notes, and snippets.

@EvanHahn
Created August 20, 2013 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanHahn/6278213 to your computer and use it in GitHub Desktop.
Save EvanHahn/6278213 to your computer and use it in GitHub Desktop.
MiniClass, minified. 338 bytes uncompressed.
(function(){var b=function(){};b.extend=function(c){c||(c={});var d=this,b=c.initialize,e=function(){b?b.apply(this,arguments):d.apply(this,arguments)},a;for(a in d)"prototype"!=a&&(e[a]=d[a]);for(a in d.prototype)e.prototype[a]=d.prototype[a];for(a in c)e.prototype[a]=c[a];return e};module.exports?module.exports=b:this.MiniClass=b})();
@EvanHahn
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment