diff --git a/backbone.js b/backbone.js index 485ec30a..0581cc7b 100644 --- a/backbone.js +++ b/backbone.js @@ -429,8 +429,8 @@ this._byCid[model.cid] = model; if (hasId) this._byId[model.id] = model; model.bind('all', this._onModelEvent, this); - this.length++; } + this.length += l; i = options.at != null ? options.at : this.models.length; splice.apply(this.models, [i, 0].concat(models)); if (this.comparator) this.sort({silent: true});