diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-01-12 09:43:02 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-01-12 09:43:02 -0800 |
commit | 9255a83189a50bef4302bdbfa9e2489871811797 (patch) | |
tree | 0dfc9399445b4e5deb33ca43d690636a409b9582 /js/lib/blocks.js | |
parent | 307e453041f59ae1b18196865d85a4d64e9c8981 (diff) |
Use new with Document and NodeWalker constructors.
Diffstat (limited to 'js/lib/blocks.js')
-rw-r--r-- | js/lib/blocks.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js index 7d24406..5b01358 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -660,7 +660,7 @@ var Document = function() { // The main parsing function. Returns a parsed document AST. var parse = function(input) { - this.doc = Document(); + this.doc = new Document(); this.tip = this.doc; this.refmap = {}; if (this.options.time) { console.time("preparing input"); } @@ -689,7 +689,7 @@ var parse = function(input) { // The DocParser object. function DocParser(options){ return { - doc: Document(), + doc: new Document(), tip: this.doc, refmap: {}, lastLineLength: 0, |