Skip to content

Commit

Permalink
Fixes jashkenas#555 -- don't return the parent constructor's value.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 17, 2012
1 parent 252919f commit f417ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Expand Up @@ -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.
Expand Down

0 comments on commit f417ddd

Please sign in to comment.