Issue #278. Allow 'extend' to be overrideable+inheritable.

This commit is contained in:
Jeremy Ashkenas
2011-03-21 10:28:22 -04:00
parent d97d8bf336
commit d149451fd4

View File

@@ -931,7 +931,7 @@
// The self-propagating extend function that Backbone classes use.
var extend = function (protoProps, classProps) {
var child = inherits(this, protoProps, classProps);
child.extend = extend;
child.extend = this.extend;
return child;
};