diff --git a/api/js/etemplate/et2_widget_dynheight.js b/api/js/etemplate/et2_widget_dynheight.js index 397b49cb39..e9edccb598 100644 --- a/api/js/etemplate/et2_widget_dynheight.js +++ b/api/js/etemplate/et2_widget_dynheight.js @@ -31,6 +31,11 @@ var et2_dynheight = /** @class */ (function () { this.innerNode = jQuery(_innerNode); this.minHeight = _minHeight; } + et2_dynheight.prototype.destroy = function () { + this.outerNode = null; + this.innerNode = null; + this.bottomNodes = []; + }; /** * Resizes the inner node. When this is done, the callback function is * called. diff --git a/api/js/etemplate/et2_widget_dynheight.ts b/api/js/etemplate/et2_widget_dynheight.ts index 0d9b168407..a056666153 100644 --- a/api/js/etemplate/et2_widget_dynheight.ts +++ b/api/js/etemplate/et2_widget_dynheight.ts @@ -39,6 +39,13 @@ export class et2_dynheight this.minHeight = _minHeight; } + destroy() + { + this.outerNode = null; + this.innerNode = null; + this.bottomNodes = []; + } + /** * Resizes the inner node. When this is done, the callback function is * called.