Browse Source

Revert "无JIRA任务 combo destroy的时候没有删除resizers"

This reverts commit 851a6bb129.
es6
windy 5 years ago
parent
commit
3dc140e92a
  1. 3
      src/base/combination/combo.js
  2. 3
      src/base/combination/searcher.js

3
src/base/combination/combo.js

@ -505,13 +505,14 @@ BI.Combo = BI.inherit(BI.Widget, {
this._toggle();
},
destroyed: function () {
destroy: function () {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName())
.unbind("mousewheel." + this.getName())
.unbind("mouseenter." + this.getName())
.unbind("mousemove." + this.getName())
.unbind("mouseleave." + this.getName());
BI.Resizers.remove(this.getName());
BI.Combo.superclass.destroy.apply(this, arguments);
}
});
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";

3
src/base/combination/searcher.js

@ -295,8 +295,9 @@ BI.Searcher = BI.inherit(BI.Widget, {
this.popupView && this.popupView.empty();
},
destroyed: function () {
destroy: function () {
BI.Maskers.remove(this.getName());
BI.Searcher.superclass.destroy.apply(this, arguments);
}
});
BI.Searcher.EVENT_CHANGE = "EVENT_CHANGE";

Loading…
Cancel
Save