Created
August 24, 2016 23:01
-
-
Save Krabaton/b27d936061db53fb01a05093780b6b0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function extend(Child, Parent) { | |
var F = function() {} | |
F.prototype = Parent.prototype | |
Child.prototype = new F() | |
Child.prototype.constructor = Child | |
Child.superclass = Parent.prototype | |
} // Child extend Parent {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment