فهرست منبع

adjust constructor option resolution timing

Evan You 9 سال پیش
والد
کامیت
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