MCPcopy Create free account
hub / github.com/microsoft/SandDance / accumulateDispatches

Function accumulateDispatches

docs/external/js/react-dom.development.js:8351–8361  ·  view source on GitHub ↗

* Accumulates without regard to direction, does not look for phased * registration names. Same as `accumulateDirectDispatchesSingle` but without * requiring that the `dispatchMarker` be the same as the dispatched ID.

(inst, ignoredDirection, event)

Source from the content-addressed store, hash-verified

8349
8350
8351 function accumulateDispatches(inst, ignoredDirection, event) {
8352 if (inst && event && event.dispatchConfig.registrationName) {
8353 var registrationName = event.dispatchConfig.registrationName;
8354 var listener = getListener(inst, registrationName);
8355
8356 if (listener) {
8357 event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
8358 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
8359 }
8360 }
8361 }
8362 /**
8363 * Accumulates dispatches on an `SyntheticEvent`, but only for the
8364 * `dispatchMarker`.

Callers 1

Calls 2

getListenerFunction · 0.85
accumulateIntoFunction · 0.85

Tested by

no test coverage detected