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

Function assertNodeMatch

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

Source from the content-addressed store, hash-verified

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

Callers 1

hydrateFunction · 0.70

Calls 1

isDefFunction · 0.70

Tested by

no test coverage detected