From 3c7358faa46c79697fdf496458d793dd2a6d2f51 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 7 Dec 2020 10:59:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/inject.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/core/inject.js b/src/core/inject.js index 13e9f9e4c..6cfa3abe1 100644 --- a/src/core/inject.js +++ b/src/core/inject.js @@ -89,16 +89,7 @@ configFunctions[type] = null; }); } - configFunctions[type].push({fn: configFn, args: opt}); - }; - - BI.Configs = BI.Configs || { - getConfigs: function () { - return configFunctions; - }, - getConfig: function (type) { - return configFunctions[type]; - }, + configFunctions[type].push(configFn); }; var actions = {};