Browse Source

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

es6
windy 6 years ago
parent
commit
851a6bb129
  1. 3
      src/base/combination/combo.js
  2. 3
      src/base/combination/searcher.js

3
src/base/combination/combo.js

@ -505,14 +505,13 @@ BI.Combo = BI.inherit(BI.Widget, {
this._toggle(); this._toggle();
}, },
destroy: function () { destroyed: function () {
BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName()) BI.Widget._renderEngine.createElement(document).unbind("mousedown." + this.getName())
.unbind("mousewheel." + this.getName()) .unbind("mousewheel." + this.getName())
.unbind("mouseenter." + this.getName()) .unbind("mouseenter." + this.getName())
.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());
BI.Combo.superclass.destroy.apply(this, arguments);
} }
}); });
BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE"; BI.Combo.EVENT_TRIGGER_CHANGE = "EVENT_TRIGGER_CHANGE";

3
src/base/combination/searcher.js

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

Loading…
Cancel
Save