summaryrefslogtreecommitdiff
path: root/js/lib/node.js
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-10 10:28:30 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-10 10:28:30 -0800
commit94bcebbe205bcb82378b0d63bd217c4b375e5b15 (patch)
tree9e07ea5ba0049897283b64e60e19ce4204a1ec00 /js/lib/node.js
parent22a8989123519263e2285b1dd71497ddf4469d53 (diff)
Made Node a local variable.
Diffstat (limited to 'js/lib/node.js')
-rw-r--r--js/lib/node.js6
1 files changed, 3 insertions, 3 deletions
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);