You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If this widget has directly created DOM nodes, delete them and exit. This assumes that any child widgets are contained within the created DOM nodes, which would normally be the case
18
+
// If parent has already detatch its dom node from the document, we don't need to do it again.
19
+
if(this.domNodes.length>0&&!parentRemoved){
20
+
$tw.utils.each(this.domNodes,function(domNode){
21
+
domNode.parentNode.removeChild(domNode);
22
+
});
23
+
this.domNodes=[];
24
+
// inform child widget to do some custom cleanup in a overrided sub-class method, and tell child widget that parent has already done the update, so children don't need to do anything.
25
+
parentRemoved=true;
26
+
}
27
+
// If parentRemoved is unset or false, will ask the child widgets to delete their DOM nodes
0 commit comments