From 851a6bb129efe7c285531d6a8d0819517b75a825 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 27 Jun 2019 16:55:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20combo=20destr?= =?UTF-8?q?oy=E7=9A=84=E6=97=B6=E5=80=99=E6=B2=A1=E6=9C=89=E5=88=A0?= =?UTF-8?q?=E9=99=A4resizers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/combination/combo.js | 3 +-- src/base/combination/searcher.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index aa3aecb118..c8faff2a55 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 9b2cd5b8ea..07423dc240 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";