guy 7 years ago
parent
commit
8963b05a4c
  1. 38
      bi/core.js
  2. 38
      docs/core.js
  3. 38
      src/core/widget.js

38
bi/core.js

@ -4497,17 +4497,6 @@ BI.Widget = BI.inherit(BI.OB, {
_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 () {
return this._isMounted;
},
@ -4687,6 +4676,21 @@ BI.Widget = BI.inherit(BI.OB, {
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 () {
if (this._parent) {
this._parent.removeWidget(this);
@ -4703,18 +4707,16 @@ BI.Widget = BI.inherit(BI.OB, {
},
_destroy: function () {
BI.each(this._children, function (i, widget) {
widget._unMount && widget._unMount();
});
this._children = {};
this._parent = null;
this._isMounted = false;
this.__d();
this.destroyed && this.destroyed();
this.element.destroy();
this.purgeListeners();
},
destroy: function () {
this._destroy();
this.__d();
this.destroyed && this.destroyed();
this.element.destroy();
this.fireEvent(BI.Events.DESTROY);
this.purgeListeners();
}

38
docs/core.js

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

38
src/core/widget.js

@ -170,17 +170,6 @@ BI.Widget = BI.inherit(BI.OB, {
_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 () {
return this._isMounted;
},
@ -360,6 +349,21 @@ BI.Widget = BI.inherit(BI.OB, {
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 () {
if (this._parent) {
this._parent.removeWidget(this);
@ -376,18 +380,16 @@ BI.Widget = BI.inherit(BI.OB, {
},
_destroy: function () {
BI.each(this._children, function (i, widget) {
widget._unMount && widget._unMount();
});
this._children = {};
this._parent = null;
this._isMounted = false;
this.__d();
this.destroyed && this.destroyed();
this.element.destroy();
this.purgeListeners();
},
destroy: function () {
this._destroy();
this.__d();
this.destroyed && this.destroyed();
this.element.destroy();
this.fireEvent(BI.Events.DESTROY);
this.purgeListeners();
}

Loading…
Cancel
Save