Skip to content

Commit

Permalink
Merge pull request jashkenas#3645 from jridgewell/variable-cleanup
Browse files Browse the repository at this point in the history
Variable cleanup
  • Loading branch information
megawac committed May 31, 2015
2 parents 2195406 + 1a8ed2e commit 6518a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backbone.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
// No events to consider.
if (!events) return;

var i = 0, length, listening;
var i = 0, listening;
var context = options.context, listeners = options.listeners;

// Delete all events listeners and "drop" events.
Expand Down Expand Up @@ -480,7 +480,7 @@
if (this.idAttribute in attrs) this.id = attrs[this.idAttribute];

// For each `set` attribute, update or delete the current value.
for (attr in attrs) {
for (var attr in attrs) {
val = attrs[attr];
if (!_.isEqual(current[attr], val)) changes.push(attr);
if (!_.isEqual(prev[attr], val)) {
Expand Down

0 comments on commit 6518a4c

Please sign in to comment.