diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index aa3aecb11..c8faff2a5 100644 --- a/src/base/combination/combo.js +++ b/src/base/combination/combo.js @@ -505,14 +505,13 @@ BI.Combo = BI.inherit(BI.Widget, { this._toggle(); }, - destroy: function () { + destroyed: 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 9b2cd5b8e..07423dc24 100644 --- a/src/base/combination/searcher.js +++ b/src/base/combination/searcher.js @@ -295,9 +295,8 @@ BI.Searcher = BI.inherit(BI.Widget, { this.popupView && this.popupView.empty(); }, - destroy: function () { + destroyed: function () { BI.Maskers.remove(this.getName()); - BI.Searcher.superclass.destroy.apply(this, arguments); } }); BI.Searcher.EVENT_CHANGE = "EVENT_CHANGE";