Browse Source

Pull request #2268: 无jira任务 容错

Merge in VISUAL/fineui from ~IMP/fineui_fui:master to master

* commit '86e2b8153a3037ffb880547c3df738895835ddc1':
  无jira任务 容错
es6
imp 3 years ago
parent
commit
06229f64a1
  1. 2
      src/core/6.inject.js

2
src/core/6.inject.js

@ -397,7 +397,7 @@
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
if (!providerInstance[type]) {
if (!providerInstance[type] && providers[type].$get) {
providerInstance[type] = new (providers[type].$get())(config);
}
return providerInstance[type];

Loading…
Cancel
Save