Fixed error caused by typo

This commit is contained in:
airjp73 2018-02-06 11:47:55 -05:00
parent 413bce4ce4
commit 0308f13dab

View File

@ -63,13 +63,15 @@ if (typeof storeData !== 'function') {
//if file is foo/index.js we want to overwrite properties from foo.js
//but not from appended mods like foo/actions.js
var appendedMods = []
var appendedMods = {}
if (module[name].appends) {
fileModule.appends = module[name].appends
appendedMods.appends = module[name].appends
for (let append of module[name].appends)
appendedMods[append] = module[name][append]
}
module[name] = Object.assign(module[name], fileModule, appendedMods)
module[name] = Object.assign({}, module[name], fileModule, appendedMods)
module[name].namespaced = true
}
}