From: Evan You Date: Thu, 11 Oct 2018 18:24:55 +0000 (-0400) Subject: chore: comments X-Git-Tag: v3.0.0-alpha.0~1124 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c94ce3ed6216260a1fab6e649f4a1def8da26c04;p=thirdparty%2Fvuejs%2Fcore.git chore: comments --- diff --git a/packages/core/src/componentUtils.ts b/packages/core/src/componentUtils.ts index a838f3f673..a902ad9590 100644 --- a/packages/core/src/componentUtils.ts +++ b/packages/core/src/componentUtils.ts @@ -26,7 +26,11 @@ export function createComponentInstance( ): ComponentInstance { // component instance creation is done in two steps. // first, `initializeComponentInstance` is called inside base component - // constructor as the instance is created so that + // constructor as the instance is created so that the extended component's + // constructor has access to certain properties and most importantly, + // this.$props. + // we are storing the vnodes in variables here so that there's no need to + // always pass args in super() currentVNode = vnode currentContextVNode = contextVNode const instance = (vnode.children = new Component()) as ComponentInstance