Browse Source

无jira任务 es6写法优化

es6
imp 3 years ago
parent
commit
3ac34ba081
  1. 12
      src/core/6.inject.js

12
src/core/6.inject.js

@ -50,6 +50,9 @@
_global.console && console.error("model: [" + xtype + "] 已经注册过了");
}
modelInjection[xtype] = cls;
return function (xtype, config) {
return BI.Models.getModel(xtype, config);
};
};
var storeInjection = {};
@ -58,6 +61,9 @@
_global.console && console.error("store: [" + xtype + "] 已经注册过了");
}
storeInjection[xtype] = cls;
return function (xtype, config) {
return BI.Stores.getStore(xtype, config);
}
};
var serviceInjection = {};
@ -66,6 +72,9 @@
_global.console && console.error("service: [" + xtype + "] 已经注册过了");
}
serviceInjection[xtype] = cls;
return function (xtype, config) {
return BI.Services.getService(xtype, config);
}
};
var providerInjection = {};
@ -74,6 +83,9 @@
_global.console && console.error("provider: [" + xtype + "] 已经注册过了");
}
providerInjection[xtype] = cls;
return function (xtype, config) {
return BI.Providers.getProvider(xtype, config);
}
};
var configFunctions = {};

Loading…
Cancel
Save