[Pkg-javascript-commits] [backbone] 170/281: only increment length once
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:02:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.9.0
in repository backbone.
commit f329cbffe412c4315ea5aa49b1fd5da5325bcf95
Author: Brad Dunbar <dunbarb2 at gmail.com>
Date: Wed Jan 11 17:37:51 2012 -0500
only increment length once
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index 485ec30..0581cc7 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});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list