Browse Source

Merge pull request #94431 in DEC/fineui from master to feature/x

* commit '8fceaadfbab23c801cfff91602e3a8a027865250':
  无JIRA任务 shortcut先放出来
es6
superman 2 years ago
parent
commit
08c8cd2ab7
  1. 14
      src/core/5.inject.js

14
src/core/5.inject.js

@ -32,7 +32,7 @@
} }
moduleInjection[xtype] = cls; moduleInjection[xtype] = cls;
} }
return function () { return function () {
return BI.Modules.getModule(xtype); return BI.Modules.getModule(xtype);
}; };
@ -45,7 +45,7 @@
} else { } else {
constantInjection[xtype] = cls; constantInjection[xtype] = cls;
} }
return function () { return function () {
return BI.Constants.getConstant(xtype); return BI.Constants.getConstant(xtype);
}; };
@ -58,7 +58,7 @@
} else { } else {
modelInjection[xtype] = cls; modelInjection[xtype] = cls;
} }
return function (config) { return function (config) {
return BI.Models.getModel(xtype, config); return BI.Models.getModel(xtype, config);
}; };
@ -71,7 +71,7 @@
} else { } else {
storeInjection[xtype] = cls; storeInjection[xtype] = cls;
} }
return function (config) { return function (config) {
return BI.Stores.getStore(xtype, config); return BI.Stores.getStore(xtype, config);
}; };
@ -84,7 +84,7 @@
} else { } else {
serviceInjection[xtype] = cls; serviceInjection[xtype] = cls;
} }
return function (config) { return function (config) {
return BI.Services.getService(xtype, config); return BI.Services.getService(xtype, config);
}; };
@ -97,7 +97,7 @@
} else { } else {
providerInjection[xtype] = cls; providerInjection[xtype] = cls;
} }
return function (config) { return function (config) {
return BI.Providers.getProvider(xtype, config); return BI.Providers.getProvider(xtype, config);
}; };
@ -402,8 +402,6 @@
BI.shortcut = BI.component = BI.shortcut || function (xtype, cls) { BI.shortcut = BI.component = BI.shortcut || function (xtype, cls) {
if (kv[xtype] != null) { if (kv[xtype] != null) {
_global.console && console.error("组件: [" + xtype + "] 已经注册过了"); _global.console && console.error("组件: [" + xtype + "] 已经注册过了");
return;
} }
if (cls) { if (cls) {
cls["xtype"] = xtype; cls["xtype"] = xtype;

Loading…
Cancel
Save