fix global mixin recursive name lookup

This commit is contained in:
Evan You 2016-06-24 11:43:17 -04:00
parent 76d7809a11
commit 7304385c11

View File

@ -9,6 +9,9 @@ export function initMixin (Vue: GlobalAPI) {
// update constructors that are already created
config._ctors.forEach(Ctor => {
Ctor.options = mergeOptions(Ctor['super'].options, Ctor.extendOptions)
if (Ctor.options.name) {
Ctor.options.components[Ctor.options.name] = Ctor
}
})
}
}