Browse Source

无jira任务 优化

es6
imp 3 years ago
parent
commit
4ace232e3c
  1. 3
      src/core/6.inject.js

3
src/core/6.inject.js

@ -11,10 +11,9 @@
if (moduleInjection[xtype] != null) { if (moduleInjection[xtype] != null) {
_global.console && console.error("module: [" + xtype + "] 已经注册过了"); _global.console && console.error("module: [" + xtype + "] 已经注册过了");
} }
var key;
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][key]) { if (!moduleInjectionMap[k][key]) {
moduleInjectionMap[k][key] = []; moduleInjectionMap[k][key] = [];
} }

Loading…
Cancel
Save