Skip to content

Instantly share code, notes, and snippets.

@bentruyman
Created October 8, 2010 17:54
Show Gist options
  • Save bentruyman/617214 to your computer and use it in GitHub Desktop.
Save bentruyman/617214 to your computer and use it in GitHub Desktop.
// Proto-classical Inheritence?? AMIDOINITRITE
function extend (clazz, superclass) {
clazz.prototype = new superclass;
clazz.superclass = superclass;
}
// So...looks like this is a stripped down version of YUI's Y.extend
@gf3
Copy link

gf3 commented Oct 8, 2010

I use Peter Michaux's class-based inheritance.

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