Merge pull request #1851 from caseywebdev/global-leak

Fix global `i` leak in `change`
This commit is contained in:
brad dunbar
2012-11-29 08:10:28 -08:00

View File

@@ -458,7 +458,7 @@
// a `"change:attribute"` event for each changed attribute.
// Calling this will cause all objects observing the model to update.
change: function(options) {
var changing = this._changing;
var i, changing = this._changing;
this._changing = true;
// Generate the changes to be triggered on the model.