MCPcopy Create free account
hub / github.com/idank/explainshell / event

Function event

explainshell/web/static/js/d3.v3.js:382–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

380 function d3_dispatch_event(dispatch) {
381 var listeners = [], listenerByName = new d3_Map();
382 function event() {
383 var z = listeners, i = -1, n = z.length, l;
384 while (++i < n) if (l = z[i].on) l.apply(this, arguments);
385 return dispatch;
386 }
387 event.on = function(name, listener) {
388 var l = listenerByName.get(name), i;
389 if (arguments.length < 2) return l && l.on;

Callers 1

dispatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected