diff --git a/index.js b/index.js index e255f22..b57d23d 100644 --- a/index.js +++ b/index.js @@ -114,7 +114,7 @@ function walk (root, cb, immutable) { state.isLeaf = Object.keys(node).length == 0 for (var i = 0; i < parents.length; i++) { - if (parents[i].node === node) { + if (parents[i].node_ === node_) { state.circular = parents[i]; break; } diff --git a/package.json b/package.json index b3075a8..bd49ec8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "traverse", - "version" : "0.3.4", + "version" : "0.3.5", "description" : "Traverse and transform objects by visiting every node on a recursive walk", "author" : "James Halliday", "license" : "MIT/X11",