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

Function getChildNamespace

code/dependency-injection/public/app.js:14875–14886  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

14873}
14874
14875function getChildNamespace(parentNamespace, type) {
14876 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
14877 // No (or default) parent namespace: potential entry point.
14878 return getIntrinsicNamespace(type);
14879 }
14880 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
14881 // We're leaving SVG.
14882 return HTML_NAMESPACE$1;
14883 }
14884 // By default, pass namespace below.
14885 return parentNamespace;
14886}
14887
14888/* globals MSApp */
14889

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected