Clarifying comment

This commit is contained in:
airjp73 2018-01-31 15:01:13 -05:00
parent 73c1d2aa63
commit 865d3ffab9

View File

@ -45,6 +45,9 @@ if (typeof storeData !== 'function') {
let module = getModuleNamespace(storeData, namePath) let module = getModuleNamespace(storeData, namePath)
name = namePath.pop() name = namePath.pop()
//use Object.assign to deal with cases where there's a 'myModule.js' and
//a 'myModule' folder containing state/getters/actions/mutations
module[name] = module[name] || {} module[name] = module[name] || {}
module[name] = Object.assign(module[name], getModule(filename)) module[name] = Object.assign(module[name], getModule(filename))
module[name].namespaced = true module[name].namespaced = true