diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index c8faff2a5..aa3aecb11 100644 --- a/src/base/combination/combo.js +++ b/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"; diff --git a/src/base/combination/searcher.js b/src/base/combination/searcher.js index 07423dc24..9b2cd5b8e 100644 --- a/src/base/combination/searcher.js +++ b/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";