Clear action manager, if present

This commit is contained in:
Nathan Gray 2014-05-07 14:38:44 +00:00
parent 0691903105
commit 30b300201e

View File

@ -109,6 +109,14 @@ var et2_DOMWidget = et2_widget.extend(et2_IDOMNode,
this.parentNode = null; this.parentNode = null;
this._attachSet = {}; this._attachSet = {};
if(this._actionManager)
{
var om = egw_getAppObjectManager(false).getObjectById(this.id);
if(om) om.remove();
this._actionManager.remove();
this._actionManager = null;
}
if (this._surroundingsMgr) if (this._surroundingsMgr)
{ {
this._surroundingsMgr.free(); this._surroundingsMgr.free();