fix ready hook

This commit is contained in:
Evan You 2016-04-16 02:17:16 -04:00
parent 4d508dcbfa
commit 849e9ba364
2 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ function init (vnode) {
}
function insert (vnode) {
callHook(vnode.child, 'ready')
callHook(vnode.data.child, 'ready')
}
function prepatch (oldVnode, vnode) {

View File

@ -64,6 +64,7 @@ export default function createPatchFunction (modules, api) {
if (isDef(data)) {
if (isDef(i = data.hook) && isDef(i = i.init)) i(vnode)
if (isDef(i = data.child)) {
insertedVnodeQueue.push(vnode)
return i._vnode.elm
}
}