From e27d5392a1acff9a4ba5d4847e251c0ab36fbbf2 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 28 Dec 2011 17:45:58 +0000 Subject: [PATCH] Some mixups missed from previous commit --- js/WikiTextProcessor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/WikiTextProcessor.js b/js/WikiTextProcessor.js index 235a2705c..d664c98ee 100644 --- a/js/WikiTextProcessor.js +++ b/js/WikiTextProcessor.js @@ -14,7 +14,7 @@ var WikiTextRules = require("./WikiTextRules.js"), Creates a new instance of the wiki text processor with the specified options. The options are a hashmap of mandatory members as follows: - textProcessors: The TextProcessors object to use to parse any cascaded content (eg transclusion) + store: The store object to use to parse any cascaded content (eg transclusion) Planned: @@ -24,6 +24,8 @@ Planned: extraMacros: An array of additional macro handlers to add */ var WikiTextProcessor = function(options) { + options = options || {}; + this.store = options.store; this.rules = WikiTextRules.rules; var pattern = []; for(var n=0; n