mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
Clarifying comment
This commit is contained in:
parent
73c1d2aa63
commit
865d3ffab9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user