MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getChildNamespace

Function getChildNamespace

code/one-direction-data-flow/public/app.js:14655–14666  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14653}
14654
14655function getChildNamespace(parentNamespace, type) {
14656 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14657 // No (or default) parent namespace: potential entry point.
14658 return getIntrinsicNamespace(type);
14659 }
14660 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14661 // We're leaving SVG.
14662 return HTML_NAMESPACE$1;
14663 }
14664 // By default, pass namespace below.
14665 return parentNamespace;
14666}
14667
14668/* globals MSApp */
14669

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected