mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-23 22:08:04 -05:00
fixes #459, inconsistency with constructor/initialize.
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
this._changed = false;
|
||||
this._previousAttributes = _.clone(this.attributes);
|
||||
if (options && options.collection) this.collection = options.collection;
|
||||
this.initialize.apply(this, arguments);
|
||||
this.initialize(attributes, options);
|
||||
};
|
||||
|
||||
// Attach all inheritable methods to the Model prototype.
|
||||
|
||||
Reference in New Issue
Block a user