- Commit
- 94bcebbe205bcb82378b0d63bd217c4b375e5b15
- Parent
- 22a8989123519263e2285b1dd71497ddf4469d53
- Author
- John MacFarlane <jgm@berkeley.edu>
- Date
Made Node a local variable.
My personal build of CMark ✏️
Made Node a local variable.
1 file changed, 3 insertions, 3 deletions
Status | File Name | N° Changes | Insertions | Deletions |
Modified | js/lib/node.js | 6 | 3 | 3 |
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);