|
|
@ -92,12 +92,23 @@ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var configFunctions = BI.OB.configFunctions = {}; |
|
|
|
var configFunctions = BI.OB.configFunctions = {}; |
|
|
|
var runConfigFunction = function (type) { |
|
|
|
var runConfigFunction = function (type, configFn) { |
|
|
|
if (!type || !configFunctions[type]) { |
|
|
|
if (!type || !configFunctions[type]) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
var queue = configFunctions[type]; |
|
|
|
|
|
|
|
|
|
|
|
var queue = []; |
|
|
|
|
|
|
|
if (configFn) { |
|
|
|
|
|
|
|
queue = configFunctions[type].filter(function (conf) { |
|
|
|
|
|
|
|
return conf.fn === configFn; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
configFunctions[type] = configFunctions[type].filter(function (conf) { |
|
|
|
|
|
|
|
return conf.fn !== configFn; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
queue = configFunctions[type]; |
|
|
|
delete configFunctions[type]; |
|
|
|
delete configFunctions[type]; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies(); |
|
|
|
var dependencies = BI.Providers.getProvider("bi.provider.system").getDependencies(); |
|
|
|
var modules = moduleInjectionMap.components[type] |
|
|
|
var modules = moduleInjectionMap.components[type] |
|
|
@ -176,6 +187,10 @@ |
|
|
|
fn: configFn, |
|
|
|
fn: configFn, |
|
|
|
opt: opt |
|
|
|
opt: opt |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (opt.immediately) { |
|
|
|
|
|
|
|
return runConfigFunction(type, configFn); |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
BI.getReference = BI.getReference || function (type, fn) { |
|
|
|
BI.getReference = BI.getReference || function (type, fn) { |
|
|
|