From 3dc140e92a2b7df370ee057fd79df7dee7f2357c Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 28 Jun 2019 11:10:36 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20com?= =?UTF-8?q?bo=20destroy=E7=9A=84=E6=97=B6=E5=80=99=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=88=A0=E9=99=A4resizers"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 851a6bb129efe7c285531d6a8d0819517b75a825. --- src/base/combination/combo.js | 3 ++- src/base/combination/searcher.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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";