Clarifying comment

This commit is contained in:
airjp73 2018-01-31 15:01:13 -05:00
parent 73c1d2aa63
commit 865d3ffab9
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ if (typeof storeData !== 'function') {
let module = getModuleNamespace(storeData, namePath)
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] = Object.assign(module[name], getModule(filename))
module[name].namespaced = true