Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
refactor iterateObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Jan 14, 2014
1 parent b492aa3 commit dc7e9c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@
},

iterateObjects: function(obj, observe) {
observe(obj);
for (var i = 0; i < this.length; i++) {
if (i)
obj = obj[this[i - 1]];
if (!obj)
return;
observe(obj);
obj = obj[this[i]];
}
},

Expand Down

0 comments on commit dc7e9c2

Please sign in to comment.