mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Removing extra preparemodel calls.
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user