fixing accidental global 'l' in loop.

This commit is contained in:
Jeremy Ashkenas
2012-01-25 10:24:53 -05:00
parent 97c72a11e6
commit c5ddc6b8f8

View File

@@ -507,7 +507,7 @@
// Remove a model, or a list of models from the set. Pass silent to avoid
// firing the `remove` event for every model removed.
remove: function(models, options) {
var i, index, model;
var i, l, index, model;
options || (options = {});
models = _.isArray(models) ? models.slice() : [models];
for (i = 0, l = models.length; i < l; i++) {