Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function extend(Child, Parent){
- var Temp = function(){};
- Temp.prototype = Parent.prototype;
- Child.prototype = new Temp();
- Child.prototype.constructor = Child;
- }
- function extend(Child, Parent){
- Child.prototype = new Parent();
- Child.prototype.constructor = Child;
- }
Add Comment
Please, Sign In to add comment