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

Function getChildNamespace

code/redux/public/app.js:15033–15044  ·  view source on GitHub ↗
(parentNamespace, type)

Source from the content-addressed store, hash-verified

15031}
15032
15033function getChildNamespace(parentNamespace, type) {
15034 if (parentNamespace == null || parentNamespace === HTML_NAMESPACE$1) {
15035 // No (or default) parent namespace: potential entry point.
15036 return getIntrinsicNamespace(type);
15037 }
15038 if (parentNamespace === SVG_NAMESPACE && type === 'foreignObject') {
15039 // We're leaving SVG.
15040 return HTML_NAMESPACE$1;
15041 }
15042 // By default, pass namespace below.
15043 return parentNamespace;
15044}
15045
15046/* globals MSApp */
15047

Callers 1

app.jsFile · 0.70

Calls 1

getIntrinsicNamespaceFunction · 0.70

Tested by

no test coverage detected