{"forks":[],"files":{"annotated.js":{"content":"function(p,s,i){ // parent, static, instance in that order\n s = Object.create( p||{}, s); // create the new classes static object\n return( \n s.prototype = Object.create( // create the new instance object\n p&& p.prototype ||{}, i // attach that to the statics prototype method\n )\n ).constructor = s // make the static the instances constructor\n}","size":449,"raw_url":"https://gist.github.com/raw/1008904/b384e4b704db0270603b8714496acf5cb457a593/annotated.js","filename":"annotated.js"},"LICENSE.txt":{"content":" DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n Version 2, December 2004\n\n Copyright (C) 2011 Kambfhase\n\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n 0. You just DO WHAT THE FUCK YOU WANT TO.","size":462,"raw_url":"https://gist.github.com/raw/1008904/35f08789500ff639e7223c43504c8ea64bed1cce/LICENSE.txt","filename":"LICENSE.txt"},"README.md":{"content":"class inheritance the way it should have been in JavaScript.\n\nA small sketchup of how the resulting object structure will look up: http://www.abload.de/image.php?img=inhnc45.png\n\nUsage:\n\n f(p,s,i) // returns the newly created class\n p: // the parent class\n s: // a property descriptor map for the static members\n i: // a property descriptor map for the instance members\n\n all of p,s,i are optional.\n\n to create a new instance of the newly created klass do:\n klass=f(p,s,i)\n Object.create(klass.prototype) // new instance\n\n to check if an object is an instance of klass do\n klass.isPrototypeOf( obj)\n\n for more examples see the unit tests.","size":682,"raw_url":"https://gist.github.com/raw/1008904/35878f66076f3bc2fa7e349c0c2d2a671aba9699/README.md","filename":"README.md"},"index.js":{"content":"function(p,s,i){s=Object.create(p||{},s);return(s.prototype=Object.create(p&&p.prototype||{},i)).constructor=s}","size":111,"raw_url":"https://gist.github.com/raw/1008904/f5d7001068a98f5720b86f5314a71cc66c7fecf2/index.js","filename":"index.js"},"test.html":{"content":"\n\n
\n\n