Browse Source

无JIRA任务 popup生命周期

es6
windy 5 years ago
parent
commit
a461d9e4e4
  1. 1
      dist/utils.js
  2. 1
      src/base/combination/combo.js
  3. 4
      src/base/combination/switcher.js
  4. 1
      src/core/ob.js
  5. 2
      src/core/widget.js

1
dist/utils.js vendored

@ -12362,6 +12362,7 @@ if (!_global.BI) {
_purgeRef: function () { _purgeRef: function () {
if (this.options.ref) { if (this.options.ref) {
this.options.ref.call(null); this.options.ref.call(null);
this.options.ref = null;
} }
}, },

1
src/base/combination/combo.js

@ -518,6 +518,7 @@ BI.Combo = BI.inherit(BI.Widget, {
.unbind("mousemove." + this.getName()) .unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName()); .unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName()); BI.Resizers.remove(this.getName());
this.popupView && this.popupView._destroy();
} }
}); });
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE"; BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";

4
src/base/combination/switcher.js

@ -271,10 +271,6 @@ BI.Switcher = BI.inherit(BI.Widget, {
empty: function () { empty: function () {
this.popupView && this.popupView.empty(); this.popupView && this.popupView.empty();
},
destroy: function () {
BI.Switcher.superclass.destroy.apply(this, arguments);
} }
}); });
BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND"; BI.Switcher.EVENT_EXPAND = "EVENT_EXPAND";

1
src/core/ob.js

@ -81,6 +81,7 @@
_purgeRef: function () { _purgeRef: function () {
if (this.options.ref) { if (this.options.ref) {
this.options.ref.call(null); this.options.ref.call(null);
this.options.ref = null;
} }
}, },

2
src/core/widget.js

@ -445,6 +445,7 @@
__d: function () { __d: function () {
this.beforeDestroy && this.beforeDestroy(); this.beforeDestroy && this.beforeDestroy();
this.beforeDestroy = null;
BI.each(this._children, function (i, widget) { BI.each(this._children, function (i, widget) {
widget && widget._unMount && widget._unMount(); widget && widget._unMount && widget._unMount();
}); });
@ -452,6 +453,7 @@
this._parent = null; this._parent = null;
this._isMounted = false; this._isMounted = false;
this.destroyed && this.destroyed(); this.destroyed && this.destroyed();
this.destroyed = null;
}, },
_unMount: function () { _unMount: function () {

Loading…
Cancel
Save