Use destroy instead of free

This commit is contained in:
Hadi Nategh 2020-01-22 16:21:29 +01:00
parent 28e4e81478
commit e1cd652183

View File

@ -205,7 +205,7 @@ etemplate2.prototype.clear = function()
// Un-register handler // Un-register handler
this.widgetContainer.egw().unregisterJSONPlugin(etemplate2_handle_assign, this, 'assign'); this.widgetContainer.egw().unregisterJSONPlugin(etemplate2_handle_assign, this, 'assign');
this.widgetContainer.free(); this.widgetContainer.destroy();
this.widgetContainer = null; this.widgetContainer = null;
} }
jQuery(this.DOMContainer).empty(); jQuery(this.DOMContainer).empty();