mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-06 17:23:11 -08:00
Fix problem when widgets don't have a parse tree node
This commit is contained in:
parent
c7d56361ee
commit
d84e398d7a
1 changed files with 1 additions and 1 deletions
|
|
@ -271,7 +271,7 @@ Make child widgets correspondng to specified parseTreeNodes
|
|||
Widget.prototype.makeChildWidgets = function(parseTreeNodes) {
|
||||
this.children = [];
|
||||
var self = this;
|
||||
$tw.utils.each(parseTreeNodes || this.parseTreeNode.children,function(childNode) {
|
||||
$tw.utils.each(parseTreeNodes || (this.parseTreeNode && this.parseTreeNode.children),function(childNode) {
|
||||
self.children.push(self.makeChildWidget(childNode));
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue