Browse Source

make flow pass

dev
Evan You 8 years ago
parent
commit
4995ce5a6c
  1. 3
      src/core/vdom/create-component.js

3
src/core/vdom/create-component.js

@ -156,7 +156,8 @@ function init (vnode: VNodeWithData, hydrating: boolean) {
child.$mount(hydrating ? vnode.elm : undefined, hydrating)
} else if (vnode.data.keepAlive) {
// kept-alive components, treat as a patch
prepatch(vnode, vnode)
const mountedNode: any = vnode // work around flow
prepatch(mountedNode, mountedNode)
}
}

Loading…
Cancel
Save