Browse Source

优化一下

es6
guy 3 years ago
parent
commit
d175f7d23e
  1. 6
      src/core/6.inject.js

6
src/core/6.inject.js

@ -11,10 +11,12 @@
if (moduleInjection[xtype] != null) { if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了"); _global.console && console.error("module: [" + xtype + "] 已经注册过了");
} }
var key; if (BI.isFunction(cls)) {
cls = cls();
}
for (var k in moduleInjectionMap) { for (var k in moduleInjectionMap) {
if (cls[k]) { if (cls[k]) {
for (key in cls[k]) { for (var key in cls[k]) {
if (!moduleInjectionMap[k]) { if (!moduleInjectionMap[k]) {
continue; continue;
} }

Loading…
Cancel
Save