mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-06 12:58:03 +00:00
Improve the Widget.prototype.removeChildDomNodes() method so that most subclasses won't need to override it
This commit is contained in:
10
plugins/tiddlywiki/d3/barwidget.js
vendored
10
plugins/tiddlywiki/d3/barwidget.js
vendored
@@ -199,16 +199,6 @@ BarWidget.prototype.refresh = function(changedTiddlers) {
|
||||
return false;
|
||||
};
|
||||
|
||||
/*
|
||||
Remove any DOM nodes created by this widget or its children
|
||||
*/
|
||||
BarWidget.prototype.removeChildDomNodes = function() {
|
||||
$tw.utils.each(this.domNodes,function(domNode) {
|
||||
domNode.parentNode.removeChild(domNode);
|
||||
});
|
||||
this.domNodes = [];
|
||||
};
|
||||
|
||||
exports.d3bar = BarWidget;
|
||||
|
||||
})();
|
||||
|
10
plugins/tiddlywiki/d3/cloudwidget.js
vendored
10
plugins/tiddlywiki/d3/cloudwidget.js
vendored
@@ -128,16 +128,6 @@ CloudWidget.prototype.refresh = function(changedTiddlers) {
|
||||
return false;
|
||||
};
|
||||
|
||||
/*
|
||||
Remove any DOM nodes created by this widget or its children
|
||||
*/
|
||||
CloudWidget.prototype.removeChildDomNodes = function() {
|
||||
$tw.utils.each(this.domNodes,function(domNode) {
|
||||
domNode.parentNode.removeChild(domNode);
|
||||
});
|
||||
this.domNodes = [];
|
||||
};
|
||||
|
||||
exports.d3cloud = CloudWidget;
|
||||
|
||||
})();
|
||||
|
Reference in New Issue
Block a user