From d175f7d23e353d2aaec5f85fd3b60c89bef01d5b Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 27 Jul 2021 10:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/6.inject.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/6.inject.js b/src/core/6.inject.js index 8cab3f109..19d30ad7f 100644 --- a/src/core/6.inject.js +++ b/src/core/6.inject.js @@ -11,10 +11,12 @@ if (moduleInjection[xtype] != null) { _global.console && console.error("module: [" + xtype + "] 已经注册过了"); } - var key; + if (BI.isFunction(cls)) { + cls = cls(); + } for (var k in moduleInjectionMap) { if (cls[k]) { - for (key in cls[k]) { + for (var key in cls[k]) { if (!moduleInjectionMap[k]) { continue; }