mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 09:50:27 +00:00
Fixed problem with renderer tree nodes that don't have children
This commit is contained in:
parent
e3462e5606
commit
6ac1b7b9dc
@ -36,8 +36,10 @@ Create an array of renderers for an array of parse tree nodes
|
||||
*/
|
||||
WikiRenderTree.prototype.createRenderers = function(renderContext,parseTreeNodes) {
|
||||
var rendererNodes = [];
|
||||
for(var t=0; t<parseTreeNodes.length; t++) {
|
||||
rendererNodes.push(this.createRenderer(renderContext,parseTreeNodes[t]));
|
||||
if(parseTreeNodes) {
|
||||
for(var t=0; t<parseTreeNodes.length; t++) {
|
||||
rendererNodes.push(this.createRenderer(renderContext,parseTreeNodes[t]));
|
||||
}
|
||||
}
|
||||
return rendererNodes;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user