MCPcopy Create free account
hub / github.com/TruthHun/BookStack / assertNodeMatch

Function assertNodeMatch

static/vuejs/vue.runtime.js:5022–5031  ·  view source on GitHub ↗
(node, vnode)

Source from the content-addressed store, hash-verified

5020 }
5021
5022 function assertNodeMatch (node, vnode) {
5023 if (isDef(vnode.tag)) {
5024 return (
5025 vnode.tag.indexOf('vue-component') === 0 ||
5026 vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
5027 )
5028 } else {
5029 return node.nodeType === (vnode.isComment ? 8 : 3)
5030 }
5031 }
5032
5033 return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {
5034 if (isUndef(vnode)) {

Callers 1

hydrateFunction · 0.70

Calls 1

isDefFunction · 0.70

Tested by

no test coverage detected