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

Function styleMaybeRemove

external/.d3.js:4794–4808  ·  view source on GitHub ↗
(id, name)

Source from the content-addressed store, hash-verified

4792}
4793
4794function styleMaybeRemove(id, name) {
4795 var on0, on1, listener0, key = "style." + name, event = "end." + key, remove;
4796 return function() {
4797 var schedule = set(this, id),
4798 on = schedule.on,
4799 listener = schedule.value[key] == null ? remove || (remove = styleRemove(name)) : undefined;
4800
4801 // If this node shared a dispatch with the previous node,
4802 // just assign the updated shared dispatch and we’re done!
4803 // Otherwise, copy-on-write.
4804 if (on !== on0 || listener0 !== listener) (on1 = (on0 = on).copy()).on(event, listener0 = listener);
4805
4806 schedule.on = on1;
4807 };
4808}
4809
4810function transition_style(name, value, priority) {
4811 var i = (name += "") === "transform" ? interpolateTransformCss : interpolate$1;

Callers 1

transition_styleFunction · 0.85

Calls 2

setFunction · 0.85
styleRemoveFunction · 0.85

Tested by

no test coverage detected