|
|
@ -81,10 +81,10 @@ |
|
|
|
BI.service = BI.service || function (xtype, cls) { |
|
|
|
BI.service = BI.service || function (xtype, cls) { |
|
|
|
if (serviceInjection[xtype] != null) { |
|
|
|
if (serviceInjection[xtype] != null) { |
|
|
|
_global.console && console.error("service: [" + xtype + "] 已经注册过了"); |
|
|
|
_global.console && console.error("service: [" + xtype + "] 已经注册过了"); |
|
|
|
} 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); |
|
|
|
}; |
|
|
|
}; |
|
|
@ -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; |
|
|
|