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

Function applyNS

static/vuejs/vue.js:3353–3367  ·  view source on GitHub ↗
(vnode, ns)

Source from the content-addressed store, hash-verified

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

Callers 1

_createElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected