diff --git a/hoop.js b/hoop.js index 7f4cac3..7c434a4 100644 --- a/hoop.js +++ b/hoop.js @@ -1,5 +1,5 @@ GLOBAL.$extends = function(child, parent) { - child.prototype = new parent; + child.prototype = Object.create(parent.prototype); child.prototype.constructor = child; child.prototype.super = parent.prototype; }