Etemplate: Fix nextmatch controller destroy() left some references

AJAX responses would then try to use them after the etemplate was destroyed, and fail.
This commit is contained in:
nathangray
2020-11-09 09:44:40 -07:00
parent 2f40337f81
commit 1ba23feb9c
4 changed files with 22 additions and 2 deletions

View File

@ -131,6 +131,8 @@ export class et2_dataview_controller
this._parentController = null;
}
}
this._grid = null;
}
/**
@ -186,6 +188,9 @@ export class et2_dataview_controller
*/
update( clear? : boolean)
{
// Avoid update after destroy
// Happens sometimes if AJAX response comes after etemplate unload
if(!this._grid) return;
// ---------