MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / accumulateDispatches

Function accumulateDispatches

code/composition/public/app.js:2848–2857  ·  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

2846 * requiring that the `dispatchMarker` be the same as the dispatched ID.
2847 */
2848function accumulateDispatches(inst, ignoredDirection, event) {
2849 if (inst && event && event.dispatchConfig.registrationName) {
2850 var registrationName = event.dispatchConfig.registrationName;
2851 var listener = getListener(inst, registrationName);
2852 if (listener) {
2853 event._dispatchListeners = accumulateInto(event._dispatchListeners, listener);
2854 event._dispatchInstances = accumulateInto(event._dispatchInstances, inst);
2855 }
2856 }
2857}
2858
2859/**
2860 * Accumulates dispatches on an `SyntheticEvent`, but only for the

Callers 1

Calls 2

getListenerFunction · 0.70
accumulateIntoFunction · 0.70

Tested by

no test coverage detected