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

Function styleNull

external/.d3.js:4748–4759  ·  view source on GitHub ↗
(name, interpolate)

Source from the content-addressed store, hash-verified

4746}
4747
4748function styleNull(name, interpolate) {
4749 var string00,
4750 string10,
4751 interpolate0;
4752 return function() {
4753 var string0 = styleValue(this, name),
4754 string1 = (this.style.removeProperty(name), styleValue(this, name));
4755 return string0 === string1 ? null
4756 : string0 === string00 && string1 === string10 ? interpolate0
4757 : interpolate0 = interpolate(string00 = string0, string10 = string1);
4758 };
4759}
4760
4761function styleRemove(name) {
4762 return function() {

Callers 1

transition_styleFunction · 0.85

Calls 2

styleValueFunction · 0.85
interpolateFunction · 0.85

Tested by

no test coverage detected