|
|
@ -14492,17 +14492,6 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
|
|
|
|
|
|
|
|
_mountChildren: null, |
|
|
|
_mountChildren: null, |
|
|
|
|
|
|
|
|
|
|
|
_unMount: function () { |
|
|
|
|
|
|
|
BI.each(this._children, function (i, widget) { |
|
|
|
|
|
|
|
widget._unMount && widget._unMount(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this._children = {}; |
|
|
|
|
|
|
|
this._parent = null; |
|
|
|
|
|
|
|
this._isMounted = false; |
|
|
|
|
|
|
|
this.purgeListeners(); |
|
|
|
|
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isMounted: function () { |
|
|
|
isMounted: function () { |
|
|
|
return this._isMounted; |
|
|
|
return this._isMounted; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -14682,6 +14671,21 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
this.setVisible(true); |
|
|
|
this.setVisible(true); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__d: function () { |
|
|
|
|
|
|
|
BI.each(this._children, function (i, widget) { |
|
|
|
|
|
|
|
widget._unMount && widget._unMount(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this._children = {}; |
|
|
|
|
|
|
|
this._parent = null; |
|
|
|
|
|
|
|
this._isMounted = false; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_unMount: function () { |
|
|
|
|
|
|
|
this.__d(); |
|
|
|
|
|
|
|
this.purgeListeners(); |
|
|
|
|
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isolate: function () { |
|
|
|
isolate: function () { |
|
|
|
if (this._parent) { |
|
|
|
if (this._parent) { |
|
|
|
this._parent.removeWidget(this); |
|
|
|
this._parent.removeWidget(this); |
|
|
@ -14698,18 +14702,16 @@ BI.Widget = BI.inherit(BI.OB, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_destroy: function () { |
|
|
|
_destroy: function () { |
|
|
|
BI.each(this._children, function (i, widget) { |
|
|
|
this.__d(); |
|
|
|
widget._unMount && widget._unMount(); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this._children = {}; |
|
|
|
|
|
|
|
this._parent = null; |
|
|
|
|
|
|
|
this._isMounted = false; |
|
|
|
|
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
this.element.destroy(); |
|
|
|
this.element.destroy(); |
|
|
|
|
|
|
|
this.purgeListeners(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
destroy: function () { |
|
|
|
destroy: function () { |
|
|
|
this._destroy(); |
|
|
|
this.__d(); |
|
|
|
|
|
|
|
this.destroyed && this.destroyed(); |
|
|
|
|
|
|
|
this.element.destroy(); |
|
|
|
this.fireEvent(BI.Events.DESTROY); |
|
|
|
this.fireEvent(BI.Events.DESTROY); |
|
|
|
this.purgeListeners(); |
|
|
|
this.purgeListeners(); |
|
|
|
} |
|
|
|
} |
|
|
|