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
+1 -1
View File
@@ -62,7 +62,7 @@ CecilyStoryView.prototype.remove = function(widget) {
duration = $tw.utils.getAnimationDuration();
// Remove the widget at the end of the transition
setTimeout(function() {
widget.destroy();
widget.removeChildDomNodes();
},duration);
// Animate the closure
$tw.utils.setStyle(targetElement,[
+1 -1
View File
@@ -80,7 +80,7 @@ StackedListView.prototype.insert = function(widget) {
};
StackedListView.prototype.remove = function(widget) {
widget.destroy();
widget.removeChildDomNodes();
};
exports.stacked = StackedListView;