MCPcopy Create free account
hub / github.com/breck7/scroll / namespace

Function namespace

external/.d3.js:1647–1651  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1645};
1646
1647function namespace(name) {
1648 var prefix = name += "", i = prefix.indexOf(":");
1649 if (i >= 0 && (prefix = name.slice(0, i)) !== "xmlns") name = name.slice(i + 1);
1650 return namespaces.hasOwnProperty(prefix) ? {space: namespaces[prefix], local: name} : name; // eslint-disable-line no-prototype-builtins
1651}
1652
1653function creatorInherit(name) {
1654 return function() {

Callers 4

creatorFunction · 0.85
selection_attrFunction · 0.85
transition_attrFunction · 0.85
transition_attrTweenFunction · 0.85

Calls 2

indexOfMethod · 0.80
sliceMethod · 0.80

Tested by

no test coverage detected