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

Function assertNodeMatch

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

Source from the content-addressed store, hash-verified

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

Callers 1

hydrateFunction · 0.70

Calls 1

isDefFunction · 0.70

Tested by

no test coverage detected