From 1d4bcc2cab3c4b83b2d40099093c13fa2852f64f Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 12 Feb 2020 13:19:52 -0700 Subject: [PATCH] Add missing destroy() to avoid error when destroying --- api/js/etemplate/et2_dataview_view_rowProvider.js | 7 +++++++ api/js/etemplate/et2_dataview_view_rowProvider.ts | 9 +++++++++ 2 files changed, 16 insertions(+) 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;