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

Function selection_insert

external/.d3.js:2355–2361  ·  view source on GitHub ↗
(name, before)

Source from the content-addressed store, hash-verified

2353}
2354
2355function selection_insert(name, before) {
2356 var create = typeof name === "function" ? name : creator(name),
2357 select = before == null ? constantNull : typeof before === "function" ? before : selector(before);
2358 return this.select(function() {
2359 return this.insertBefore(create.apply(this, arguments), select.apply(this, arguments) || null);
2360 });
2361}
2362
2363function remove() {
2364 var parent = this.parentNode;

Callers

nothing calls this directly

Calls 3

creatorFunction · 0.85
selectorFunction · 0.85
selectMethod · 0.80

Tested by

no test coverage detected