Merge pull request #902 from tomasztunik/master

Fixed variable leak to global scope
This commit is contained in:
brad dunbar
2012-01-30 12:50:21 -08:00

View File

@@ -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];