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

Function selection_classed

external/.d3.js:2261–2274  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

2259}
2260
2261function selection_classed(name, value) {
2262 var names = classArray(name + "");
2263
2264 if (arguments.length < 2) {
2265 var list = classList(this.node()), i = -1, n = names.length;
2266 while (++i < n) if (!list.contains(names[i])) return false;
2267 return true;
2268 }
2269
2270 return this.each((typeof value === "function"
2271 ? classedFunction : value
2272 ? classedTrue
2273 : classedFalse)(names, value));
2274}
2275
2276function textRemove() {
2277 this.textContent = "";

Callers

nothing calls this directly

Calls 4

classArrayFunction · 0.85
classListFunction · 0.85
containsMethod · 0.80
eachMethod · 0.80

Tested by

no test coverage detected