mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 05:34:35 +00:00
Feat: destroy() method for widgets to do custom cleanup (#6699)
* feat: inform child widget to do some custom cleanup * fix: type * refactor: restore old removeChildDomNodes * refactor: make destroy() a separate method * refactor: make destroy call removeChildDomNodes * refactor: call destroy instead of removeChildDomNodes in each core widgets * fix: refreshSelf does not mean destroy * refactor: use old var insteadof const * docs: about subclass
This commit is contained in:
@@ -80,7 +80,7 @@ StackedListView.prototype.insert = function(widget) {
|
||||
};
|
||||
|
||||
StackedListView.prototype.remove = function(widget) {
|
||||
widget.removeChildDomNodes();
|
||||
widget.destroy();
|
||||
};
|
||||
|
||||
exports.stacked = StackedListView;
|
||||
|
||||
Reference in New Issue
Block a user