Skip to content
Browse files

Fix crash when node is a string and this.update is called with an obj…

…ect.
  • Loading branch information...
1 parent 6b78600 commit 5c6f161f2006df87f231317f3413bc38ad799b7d @grncdr grncdr committed May 2, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 index.js
View
2 index.js
@@ -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);

0 comments on commit 5c6f161

Please sign in to comment.
Something went wrong with that request. Please try again.