cmark

Unnamed repository; edit this file 'description' to name the repository.

commit 94bcebbe205bcb82378b0d63bd217c4b375e5b15
parent 22a8989123519263e2285b1dd71497ddf4469d53
Author: John MacFarlane <jgm@berkeley.edu>
Date:   Sat, 10 Jan 2015 10:28:30 -0800

Made Node a local variable.

Diffstat:
Mjs/lib/node.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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);