mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #1851 from caseywebdev/global-leak
Fix global `i` leak in `change`
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user