1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-14 06:17:20 +00:00

Revert "Feat: destroy() method for widgets to do custom cleanup (#6699)"

This reverts commit 474b73bdbe.
This commit is contained in:
jeremy@jermolene.com
2023-05-18 17:27:05 +01:00
parent 8ad08b0cd4
commit 990909c310
8 changed files with 14 additions and 37 deletions

View File

@@ -122,7 +122,7 @@ ImportVariablesWidget.prototype.refresh = function(changedTiddlers) {
}
if(changedAttributes.filter || !$tw.utils.isArrayEqual(this.tiddlerList,tiddlerList) || haveListedTiddlersChanged()) {
// Compute the filter
this.destroy();
this.removeChildDomNodes();
this.execute(tiddlerList);
this.renderChildren(this.parentDomNode,this.findNextSiblingDomNode());
return true;