Removing extra preparemodel calls.

This commit is contained in:
Jeremy Ashkenas
2013-09-11 21:19:37 -03:00
parent cbbd944fc4
commit abcb3cf3ef

View File

@@ -762,7 +762,6 @@
// Add a model to the end of the collection.
push: function(model, options) {
model = this._prepareModel(model, options);
this.add(model, _.extend({at: this.length}, options));
return model;
},
@@ -776,7 +775,6 @@
// Add a model to the beginning of the collection.
unshift: function(model, options) {
model = this._prepareModel(model, options);
this.add(model, _.extend({at: 0}, options));
return model;
},