Просмотр исходного кода

adjust constructor option resolution timing

Evan You 9 лет назад
Родитель
Сommit
ddac9761b6
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/core/vdom/create-component.js

+ 4 - 4
src/core/vdom/create-component.js

@@ -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