MCPcopy Create free account
hub / github.com/breck7/scroll / attrFunction$1

Function attrFunction$1

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

Source from the content-addressed store, hash-verified

2097}
2098
2099function attrFunction$1(name, value) {
2100 return function() {
2101 var v = value.apply(this, arguments);
2102 if (v == null) this.removeAttribute(name);
2103 else this.setAttribute(name, v);
2104 };
2105}
2106
2107function attrFunctionNS$1(fullname, value) {
2108 return function() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected