MCPcopy
hub / github.com/jipegit/OSXAuditor / d3_eventDispatch

Function d3_eventDispatch

d3-3.2.8/d3.js:443–459  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

441 return e;
442 }
443 function d3_eventDispatch(target) {
444 var dispatch = new d3_dispatch(), i = 0, n = arguments.length;
445 while (++i < n) dispatch[arguments[i]] = d3_dispatch_event(dispatch);
446 dispatch.of = function(thiz, argumentz) {
447 return function(e1) {
448 try {
449 var e0 = e1.sourceEvent = d3.event;
450 e1.target = target;
451 d3.event = e1;
452 dispatch[e1.type].apply(thiz, argumentz);
453 } finally {
454 d3.event = e0;
455 }
456 };
457 };
458 return dispatch;
459 }
460 d3.requote = function(s) {
461 return s.replace(d3_requote_re, "\\$&");
462 };

Callers 1

d3.jsFile · 0.85

Calls 1

d3_dispatch_eventFunction · 0.85

Tested by

no test coverage detected