Skip to content

Commit

Permalink
refactor: also clone vnode.asyncFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 11, 2017
1 parent 4d68079 commit fed602b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/core/vdom/vnode.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export default class VNode {
isComment: boolean; // empty comment placeholder?
isCloned: boolean; // is a cloned node?
isOnce: boolean; // is a v-once node?
asyncFactory: ?Function; // async component factory function
asyncMeta: ?Object;
asyncFactory: Function | void; // async component factory function
asyncMeta: Object | void;
isAsyncPlaceholder: boolean;
ssrContext: ?Object;
ssrContext: Object | void;

constructor (
tag?: string,
Expand Down Expand Up @@ -87,7 +87,8 @@ export function cloneVNode (vnode: VNode): VNode {
vnode.text,
vnode.elm,
vnode.context,
vnode.componentOptions
vnode.componentOptions,
vnode.asyncFactory
)
cloned.ns = vnode.ns
cloned.isStatic = vnode.isStatic
Expand Down

0 comments on commit fed602b

Please sign in to comment.