adjust constructor option resolution timing

This commit is contained in:
Evan You 2016-11-09 18:09:33 -05:00
parent 8e810dcfd6
commit ddac9761b6

View File

@ -34,10 +34,6 @@ export function createComponent (
return
}
// resolve constructor options in case global mixins are applied after
// component constructor creation
resolveConstructorOptions(Ctor)
// async component
if (!Ctor.cid) {
if (Ctor.resolved) {
@ -56,6 +52,10 @@ export function createComponent (
}
}
// resolve constructor options in case global mixins are applied after
// component constructor creation
resolveConstructorOptions(Ctor)
data = data || {}
// extract props