mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Add missing destroy() to avoid error when destroying
This commit is contained in:
parent
fa95142954
commit
1d4bcc2cab
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user