Skip to content

Commit

Permalink
non-coerced root test fixes an odd bug with array traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Sep 4, 2010
1 parent 5aa3f84 commit f22580a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function Traverse (refObj) {
path : [].concat(path),
parent : parents.slice(-1)[0],
key : path.slice(-1)[0],
isRoot : node == self.value,
isRoot : node === self.value,
update : function (x) {
if (state.isRoot) {
self.value = x;
Expand Down

0 comments on commit f22580a

Please sign in to comment.