From 9255a83189a50bef4302bdbfa9e2489871811797 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 12 Jan 2015 09:43:02 -0800 Subject: Use new with Document and NodeWalker constructors. --- js/lib/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/lib/node.js') 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; }; -- cgit v1.2.3