Add missing destroy() to avoid error when destroying

This commit is contained in:
nathangray 2020-02-12 13:19:52 -07:00
parent fa95142954
commit 1d4bcc2cab
2 changed files with 16 additions and 0 deletions

View File

@ -42,6 +42,13 @@ var et2_dataview_rowProvider = /** @class */ (function () {
this._createEmptyPrototype(); this._createEmptyPrototype();
this._createLoadingPrototype(); 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 () { et2_dataview_rowProvider.prototype.getColumnCount = function () {
return this._columnIds.length; return this._columnIds.length;
}; };

View File

@ -53,6 +53,15 @@ export class et2_dataview_rowProvider
this._createLoadingPrototype(); this._createLoadingPrototype();
} }
public destroy()
{
this._template = null;
this._mgrs = null;
this._rootWidget = null;
this._prototypes = {};
this._columnIds = [];
}
public getColumnCount() public getColumnCount()
{ {
return this._columnIds.length; return this._columnIds.length;