Skip to content

Commit

Permalink
Fix crash when node is a string and this.update is called with an obj…
Browse files Browse the repository at this point in the history
…ect.
  • Loading branch information
grncdr committed May 2, 2012
1 parent 6b78600 commit 5c6f161
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ function walk (root, cb, immutable) {
&& state.node !== null && !state.circular) {
parents.push(state);

if (!state.keys) state.keys = Object_keys(state.node);

forEach(state.keys, function (key, i) {
path.push(key);

Expand Down

0 comments on commit 5c6f161

Please sign in to comment.