chore(view) return

This commit is contained in:
coderaiser 2017-02-17 11:05:47 +02:00
parent f56035caa3
commit 279fa2ff20

View file

@ -169,8 +169,10 @@ function initConfig(Config, options) {
const item = options[name];
const isFunc = itype.function(item);
if (!isFunc || !isConfig)
return config[name] = options[name];
if (!isFunc || !isConfig) {
config[name] = options[name];
return;
}
const func = config[name];
config[name] = () => {