From 50d43612d4d71a190c4adb2b382fa3c7dd92f882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Wed, 8 Nov 2023 17:29:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96object=E5=AF=B9=E8=B1=A1=E7=9A=84un=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/3.ob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fineui/src/core/3.ob.js b/packages/fineui/src/core/3.ob.js index 1cf2d94ae..3e4ed7fe4 100644 --- a/packages/fineui/src/core/3.ob.js +++ b/packages/fineui/src/core/3.ob.js @@ -155,7 +155,7 @@ export class OB { eventName = eventName.toLowerCase(); /* alex:如果fn是null,就是把eventName上面所有方法都un掉*/ - if (fn === null) { + if (!fn) { delete this._getEvents()[eventName]; } else { const fns = this._getEvents()[eventName];