mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-25 14:57:55 -05:00
Issue #278. Allow 'extend' to be overrideable+inheritable.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user