From 0d4b35f55975946cb0eb4f7f5f35efe3d078473e Mon Sep 17 00:00:00 2001 From: Evan You Date: Sun, 9 Dec 2018 16:21:22 -0500 Subject: [PATCH] fix(vdom): remove unnecessary sameVnode condition fix #9168 --- src/core/vdom/patch.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/core/vdom/patch.js b/src/core/vdom/patch.js index 7e58bced6ac..9746bb794f8 100644 --- a/src/core/vdom/patch.js +++ b/src/core/vdom/patch.js @@ -32,12 +32,6 @@ export const emptyNode = new VNode('', {}, []) const hooks = ['create', 'activate', 'update', 'remove', 'destroy'] -function childrenIgnored (vnode) { - return vnode && vnode.data && vnode.data.domProps && ( - vnode.data.domProps.innerHTML || vnode.data.domProps.textContent - ) -} - function sameVnode (a, b) { return ( a.key === b.key && ( @@ -45,7 +39,6 @@ function sameVnode (a, b) { a.tag === b.tag && a.isComment === b.isComment && isDef(a.data) === isDef(b.data) && - !childrenIgnored(a) && !childrenIgnored(b) && sameInputType(a, b) ) || ( isTrue(a.isAsyncPlaceholder) &&