From 94bcebbe205bcb82378b0d63bd217c4b375e5b15 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 10 Jan 2015 10:28:30 -0800 Subject: Made Node a local variable. --- js/lib/node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/lib') diff --git a/js/lib/node.js b/js/lib/node.js index 837f596..9dc7c3f 100644 --- a/js/lib/node.js +++ b/js/lib/node.js @@ -56,9 +56,9 @@ var NodeWalker = function(root) { entering: true, next: next, resumeAt: resumeAt }; -} +}; -function Node(nodeType, sourcepos) { +var Node = function(nodeType, sourcepos) { this.t = nodeType; this.parent = null; this.firstChild = null; @@ -79,7 +79,7 @@ function Node(nodeType, sourcepos) { this.fence_length = undefined; this.fence_offset = undefined; this.level = undefined; -} +}; Node.prototype.isContainer = function() { return isContainer(this); -- cgit v1.2.3