Fixes #555 -- don't return the parent constructor's value.

This commit is contained in:
Jeremy Ashkenas
2012-01-17 16:13:28 -05:00
parent 252919f841
commit f417ddd1ab

View File

@@ -1175,7 +1175,7 @@
if (protoProps && protoProps.hasOwnProperty('constructor')) {
child = protoProps.constructor;
} else {
child = function(){ return parent.apply(this, arguments); };
child = function(){ parent.apply(this, arguments); };
}
// Inherit class (static) properties from parent.