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

Function executeDispatch

code/third-party/public/app.js:1363–1368  ·  view source on GitHub ↗

* Dispatch the event to the listener. * @param {SyntheticEvent} event SyntheticEvent to handle * @param {boolean} simulated If the event is simulated (changes exn behavior) * @param {function} listener Application-level callback * @param {*} inst Internal component instance

(event, simulated, listener, inst)

Source from the content-addressed store, hash-verified

1361 * @param {*} inst Internal component instance
1362 */
1363function executeDispatch(event, simulated, listener, inst) {
1364 var type = event.type || 'unknown-event';
1365 event.currentTarget = getNodeFromInstance(inst);
1366 ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
1367 event.currentTarget = null;
1368}
1369
1370/**
1371 * Standard/simple iteration through an event's collected dispatches.

Callers 1

executeDispatchesInOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected