mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-05-25 06:42:18 +00:00
Major reorganisation of wikitext rendering
Getting ready to support selective refresh of DOM elements
This commit is contained in:
@@ -28,7 +28,11 @@ var JavaScriptParseTree = function(tree) {
|
||||
// Render the entire JavaScript tree object to JavaScript source code
|
||||
JavaScriptParseTree.prototype.render = function() {
|
||||
var output = [];
|
||||
this.renderSubTree(output,this.tree);
|
||||
if(this.tree instanceof Array) {
|
||||
this.renderSubTree(output,this.tree);
|
||||
} else {
|
||||
this.renderNode(output,this.tree);
|
||||
}
|
||||
var r = output.join("");
|
||||
return r;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user