From 41ada7a50aeb2c1aea2722e2331083eddd7ea53e Mon Sep 17 00:00:00 2001 From: zsmj Date: Mon, 17 Oct 2022 15:55:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JRIA=20fix:=20w.listeners[BI.Events.MO?= =?UTF-8?q?UNT]=E7=9A=84concat=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/5.inject.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/5.inject.js b/src/core/5.inject.js index f3d5f8627..9602deed9 100644 --- a/src/core/5.inject.js +++ b/src/core/5.inject.js @@ -479,11 +479,11 @@ } }]); } else { - w.listeners[BI.Events.MOUNT] = (w.listeners[BI.Events.MOUNT] || []).concat([ + w.listeners[BI.Events.MOUNT] = [ function () { BI.Plugin.getObject(elType, this); } - ]); + ].concat(w.listeners[BI.Events.MOUNT] || []); } } return createWidget(w, context, lazy);