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

Function parseTypenames

external/.d3.js:2398–2404  ·  view source on GitHub ↗
(typenames)

Source from the content-addressed store, hash-verified

2396}
2397
2398function parseTypenames(typenames) {
2399 return typenames.trim().split(/^|\s+/).map(function(t) {
2400 var name = "", i = t.indexOf(".");
2401 if (i >= 0) name = t.slice(i + 1), t = t.slice(0, i);
2402 return {type: t, name: name};
2403 });
2404}
2405
2406function onRemove(typename) {
2407 return function() {

Callers 1

selection_onFunction · 0.85

Calls 5

mapMethod · 0.80
splitMethod · 0.80
trimMethod · 0.80
indexOfMethod · 0.80
sliceMethod · 0.80

Tested by

no test coverage detected