Skip to content

Commit

Permalink
fix(vdom): remove unnecessary sameVnode condition
Browse files Browse the repository at this point in the history
fix #9168
  • Loading branch information
yyx990803 committed Dec 9, 2018
1 parent 5d721a4 commit 0d4b35f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/core/vdom/patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,13 @@ 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 && (
(
a.tag === b.tag &&
a.isComment === b.isComment &&
isDef(a.data) === isDef(b.data) &&
!childrenIgnored(a) && !childrenIgnored(b) &&
sameInputType(a, b)
) || (
isTrue(a.isAsyncPlaceholder) &&
Expand Down

0 comments on commit 0d4b35f

Please sign in to comment.