Skip to content

Commit

Permalink
fixing accidental global 'l' in loop.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Jan 25, 2012
1 parent 97c72a1 commit c5ddc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit c5ddc6b

Please sign in to comment.