Skip to content

Instantly share code, notes, and snippets.

@oivoodoo
Created August 25, 2011 16:00
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 oivoodoo/1171027 to your computer and use it in GitHub Desktop.
Save oivoodoo/1171027 to your computer and use it in GitHub Desktop.
inherit = (function() {
var F = function() {};
return function(C, P) {
F.prototype = P.prototype;
C.prototype = new F();
C.uber = P.prototype;
C.prototype.constructor = C;
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment