1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-08 11:32:59 +00:00

Improve the Widget.prototype.removeChildDomNodes() method so that most subclasses won't need to override it

This commit is contained in:
Jermolene
2013-11-09 16:55:14 +00:00
parent e2d7c7aea5
commit 6f1c9d88cc
19 changed files with 12 additions and 183 deletions

View File

@@ -136,16 +136,6 @@ ButtonWidget.prototype.refresh = function(changedTiddlers) {
return this.refreshChildren(changedTiddlers);
};
/*
Remove any DOM nodes created by this widget or its children
*/
ButtonWidget.prototype.removeChildDomNodes = function() {
$tw.utils.each(this.domNodes,function(domNode) {
domNode.parentNode.removeChild(domNode);
});
this.domNodes = [];
};
exports.button = ButtonWidget;
})();