MCPcopy
hub / github.com/fanmingming/live / sameVnode

Function sameVnode

m3u8/vue.js:5803–5818  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

5801 var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
5802
5803 function sameVnode (a, b) {
5804 return (
5805 a.key === b.key && (
5806 (
5807 a.tag === b.tag &&
5808 a.isComment === b.isComment &&
5809 isDef(a.data) === isDef(b.data) &&
5810 sameInputType(a, b)
5811 ) || (
5812 isTrue(a.isAsyncPlaceholder) &&
5813 a.asyncFactory === b.asyncFactory &&
5814 isUndef(b.asyncFactory.error)
5815 )
5816 )
5817 )
5818 }
5819
5820 function sameInputType (a, b) {
5821 if (a.tag !== 'input') { return true }

Callers 3

updateChildrenFunction · 0.85
findIdxInOldFunction · 0.85
createPatchFunctionFunction · 0.85

Calls 4

isDefFunction · 0.85
sameInputTypeFunction · 0.85
isTrueFunction · 0.85
isUndefFunction · 0.85

Tested by

no test coverage detected