summaryrefslogtreecommitdiff
path: root/js/lib/node.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-12 09:43:02 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-12 09:43:02 -0800
commit9255a83189a50bef4302bdbfa9e2489871811797 (patch)
tree0dfc9399445b4e5deb33ca43d690636a409b9582 /js/lib/node.js
parent307e453041f59ae1b18196865d85a4d64e9c8981 (diff)
Use new with Document and NodeWalker constructors.
Diffstat (limited to 'js/lib/node.js')
-rw-r--r--js/lib/node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/node.js b/js/lib/node.js
index 47ae3c8..e58c7c7 100644
--- a/js/lib/node.js
+++ b/js/lib/node.js
@@ -160,7 +160,7 @@ Node.prototype.insertBefore = function(sibling) {
};
Node.prototype.walker = function() {
- var walker = NodeWalker(this);
+ var walker = new NodeWalker(this);
return walker;
};