mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 12:07:13 +00:00
Cleaned up JavaScript processing
I'm slowly trying to make the JavaScript processing and the WikiText processing use the same conventions
This commit is contained in:
@@ -9,8 +9,7 @@ Parses a block of tiddlywiki-format wiki text into a parse tree object.
|
||||
/*jslint node: true */
|
||||
"use strict";
|
||||
|
||||
var WikiTextRenderer = require("./WikiTextRenderer.js").WikiTextRenderer,
|
||||
WikiTextCompiler = require("./WikiTextCompiler.js").WikiTextCompiler,
|
||||
var WikiTextCompiler = require("./WikiTextCompiler.js").WikiTextCompiler,
|
||||
utils = require("./Utils.js"),
|
||||
util = require("util");
|
||||
|
||||
@@ -139,11 +138,6 @@ WikiTextParser.prototype.render = function(type,treenode,store,title) {
|
||||
return fn(tiddler,store,utils);
|
||||
};
|
||||
|
||||
WikiTextParser.prototype.compile = function(type,treenode,store,title) {
|
||||
var compiler = new WikiTextCompiler(store,title,this);
|
||||
return compiler.compile(type,treenode);
|
||||
};
|
||||
|
||||
exports.WikiTextParser = WikiTextParser;
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user