Etemplate - avoid JS errors if unloading a nextmatch that didn't get properly initialized.

This can happen if the nm is set disabled via server-side modification
This commit is contained in:
nathangray 2019-09-16 09:46:57 -06:00
parent a1251b528f
commit ca76e377cd

View File

@ -233,8 +233,14 @@ var et2_nextmatch = (function(){ "use strict"; return et2_DOMWidget.extend([et2_
// Free the grid components
this.dataview.free();
if(this.rowProvider)
{
this.rowProvider.free();
}
if(this.controller)
{
this.controller.free();
}
this.dynheight.free();
this._super.apply(this, arguments);