From 88329b54d51a8479b64ab8ff60b7d134e5e3a403 Mon Sep 17 00:00:00 2001 From: zsmj Date: Tue, 5 Jul 2022 11:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20=E7=89=B5=E4=B8=80=E5=8F=91?= =?UTF-8?q?=E8=80=8C=E5=8A=A8=E5=85=A8=E8=BA=AB,=E5=85=88=E5=9B=9E?= =?UTF-8?q?=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/4.widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/4.widget.js b/src/core/4.widget.js index 97b6f008f..ef412cafd 100644 --- a/src/core/4.widget.js +++ b/src/core/4.widget.js @@ -739,12 +739,13 @@ this.destroyed = null; this._isDestroyed = true; // this._purgeRef(); // 清除ref的时机还是要仔细考虑一下 - this.purgeListeners(); + }, _unMount: function () { this.__destroy(); this.fireEvent(BI.Events.UNMOUNT); + this.purgeListeners(); }, _empty: function () {