skip transition on non-elements

This commit is contained in:
Evan You 2016-08-10 00:45:42 -04:00
parent cdc0bc9cd4
commit 5b80d05c2a
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export function enter (vnode: VNodeWithData) {
}
/* istanbul ignore if */
if (el._enterCb) {
if (el._enterCb || el.nodeType !== 1) {
return
}
@ -135,7 +135,7 @@ export function leave (vnode: VNodeWithData, rm: Function) {
}
/* istanbul ignore if */
if (el._leaveCb) {
if (el._leaveCb || el.nodeType !== 1) {
return
}