summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to '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);