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

Function applyNS

static/vuejs/vue.esm.js:3351–3365  ·  view source on GitHub ↗
(vnode, ns)

Source from the content-addressed store, hash-verified

3349}
3350
3351function applyNS (vnode, ns) {
3352 vnode.ns = ns;
3353 if (vnode.tag === 'foreignObject') {
3354 // use default namespace inside foreignObject
3355 return
3356 }
3357 if (vnode.children) {
3358 for (var i = 0, l = vnode.children.length; i < l; i++) {
3359 var child = vnode.children[i];
3360 if (child.tag && !child.ns) {
3361 applyNS(child, ns);
3362 }
3363 }
3364 }
3365}
3366
3367/* */
3368

Callers 1

_createElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected