From 2bee7da9af207df4cb481a206c1d7b49e4315305 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Fri, 27 Nov 2020 15:02:46 +0800 Subject: [PATCH] update --- src/core/inject.js | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/src/core/inject.js b/src/core/inject.js index 0e0676375..89d0bd993 100644 --- a/src/core/inject.js +++ b/src/core/inject.js @@ -53,47 +53,6 @@ configFunctions[type] = []; } configFunctions[type].push({fn: configFn, args: opt}); - // if (BI.initialized) { - // if (constantInjection[type]) { - // return (constantInjection[type] = configFn(constantInjection[type])); - // } - // if (providerInjection[type]) { - // if (!providers[type]) { - // providers[type] = new providerInjection[type](); - // } - // // 如果config被重新配置的话,需要删除掉之前的实例 - // if (providerInstance[type]) { - // delete providerInstance[type]; - // } - // return configFn(providers[type]); - // } - // return BI.Plugin.configWidget(type, configFn, opt); - // } - // if (!configFunctions[type]) { - // configFunctions[type] = []; - // BI.prepares.push(function () { - // var queue = configFunctions[type]; - // for (var i = 0; i < queue.length; i++) { - // if (constantInjection[type]) { - // constantInjection[type] = queue[i](constantInjection[type]); - // continue; - // } - // if (providerInjection[type]) { - // if (!providers[type]) { - // providers[type] = new providerInjection[type](); - // } - // if (providerInstance[type]) { - // delete providerInstance[type]; - // } - // queue[i](providers[type]); - // continue; - // } - // BI.Plugin.configWidget(type, queue[i]); - // } - // configFunctions[type] = null; - // }); - // } - // configFunctions[type].push(configFn); }; BI.Configs = BI.Configs || {