diff --git a/api/js/etemplate/et2_dataview_view_rowProvider.js b/api/js/etemplate/et2_dataview_view_rowProvider.js index d4d369717a..b793cba537 100644 --- a/api/js/etemplate/et2_dataview_view_rowProvider.js +++ b/api/js/etemplate/et2_dataview_view_rowProvider.js @@ -42,6 +42,13 @@ var et2_dataview_rowProvider = /** @class */ (function () { this._createEmptyPrototype(); this._createLoadingPrototype(); } + et2_dataview_rowProvider.prototype.destroy = function () { + this._template = null; + this._mgrs = null; + this._rootWidget = null; + this._prototypes = {}; + this._columnIds = []; + }; et2_dataview_rowProvider.prototype.getColumnCount = function () { return this._columnIds.length; }; diff --git a/api/js/etemplate/et2_dataview_view_rowProvider.ts b/api/js/etemplate/et2_dataview_view_rowProvider.ts index 0e8160189e..d5d182a79d 100644 --- a/api/js/etemplate/et2_dataview_view_rowProvider.ts +++ b/api/js/etemplate/et2_dataview_view_rowProvider.ts @@ -53,6 +53,15 @@ export class et2_dataview_rowProvider this._createLoadingPrototype(); } + public destroy() + { + this._template = null; + this._mgrs = null; + this._rootWidget = null; + this._prototypes = {}; + this._columnIds = []; + } + public getColumnCount() { return this._columnIds.length;