##// END OF EJS Templates
Fixed startupWidgets for nodes are not of the Element type.
cin -
r69:c276b9b7fa83 v1.1.2 default
parent child
Show More
@@ -134,13 +134,15 export function emptyNode(target: Node)
134 134 */
135 135 export function startupWidgets(target: Node | _WidgetBase, skipNode?: Node) {
136 136 if (isNode(target)) {
137 const w = registry.byNode(target);
137 const w = isElementNode(target) ? registry.byNode(target) : undefined;
138 138 if (w) {
139 w.startup && w.startup();
139 if (w.startup)
140 w.startup();
140 141 } else {
141 registry.findWidgets(target, skipNode).forEach(w => w.startup());
142 registry.findWidgets(target, skipNode).forEach(x => x.startup());
142 143 }
143 144 } else {
144 target.startup && target.startup();
145 if(target.startup)
146 target.startup();
145 147 }
146 148 } No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now