fixes #459, inconsistency with constructor/initialize.

This commit is contained in:
Jeremy Ashkenas
2011-07-05 08:58:13 -04:00
parent cbefdb8a55
commit d3c9a9b0d5

View File

@@ -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.