From f22580aacec7b2eb60c38ba8ba1b89324ed3e209 Mon Sep 17 00:00:00 2001 From: James Halliday Date: Sat, 4 Sep 2010 02:41:07 -0800 Subject: [PATCH] non-coerced root test fixes an odd bug with array traversal --- lib/traverse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/traverse.js b/lib/traverse.js index 55fd758..bd60639 100644 --- a/lib/traverse.js +++ b/lib/traverse.js @@ -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;