mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-08 03:00:26 -04:00
Merge pull request #902 from tomasztunik/master
Fixed variable leak to global scope
This commit is contained in:
@@ -470,7 +470,7 @@
|
||||
// Add a model, or list of models to the set. Pass **silent** to avoid
|
||||
// firing the `add` event for every new model.
|
||||
add: function(models, options) {
|
||||
var i, index, length, model, cids = {}, ids = {};
|
||||
var i, index, length, model, cid, cids = {}, ids = {};
|
||||
options || (options = {});
|
||||
models = _.isArray(models) ? models.slice() : [models];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user