mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-17 06:01:34 +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)
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user