Fix problem when widgets don't have a parse tree node

print-window-tiddler
Jeremy Ruston 2013-10-27 22:53:06 +00:00
rodzic c7d56361ee
commit d84e398d7a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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));
});
};