mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-22 21:38:00 -05:00
fixing accidental global 'l' in loop.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user