Skip to content

Commit a62fd6f

Browse files
committed
use vnode.componentInstance
1 parent 71f1c9b commit a62fd6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/view.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ export default {
4848
// inject instance registration hooks
4949
const hooks = data.hook || (data.hook = {})
5050
hooks.init = vnode => {
51-
matched.instances[name] = vnode.child
51+
matched.instances[name] = vnode.componentInstance
5252
}
5353
hooks.prepatch = (oldVnode, vnode) => {
54-
matched.instances[name] = vnode.child
54+
matched.instances[name] = vnode.componentInstance
5555
}
5656
hooks.destroy = vnode => {
57-
if (matched.instances[name] === vnode.child) {
57+
if (matched.instances[name] === vnode.componentInstance) {
5858
matched.instances[name] = undefined
5959
}
6060
}

0 commit comments

Comments
 (0)