Add missing destroy()

This commit is contained in:
nathangray 2020-02-24 15:15:24 -07:00
parent b7403af93f
commit f0392bc4e8
2 changed files with 12 additions and 0 deletions

View File

@ -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.

View File

@ -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.