Browse Source

Pull request #1358: 无JIRA任务 bugfix

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '58a486c8ffea280708d8ff7e884808ecf135b2a9':
  bugfix
es6
guy 4 years ago
parent
commit
c5686b1e86
  1. 9
      src/core/inject.js

9
src/core/inject.js

@ -57,7 +57,10 @@
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
providerInstance[type] = null;
// 如果config被重新配置的话,需要删除掉之前的实例
if (providerInstance[type]) {
delete providerInstance[type];
}
return configFn(providers[type]);
}
return BI.Plugin.configWidget(type, configFn);
@ -75,7 +78,9 @@
if (!providers[type]) {
providers[type] = new providerInjection[type]();
}
providerInstance[type] = null;
if (providerInstance[type]) {
delete providerInstance[type];
}
queue[i](providers[type]);
continue;
}

Loading…
Cancel
Save