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

Function executeDispatch

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

* Dispatch the event to the listener. * @param {SyntheticEvent} event SyntheticEvent to handle * @param {function} listener Application-level callback * @param {*} inst Internal component instance

(event, listener, inst)

Source from the content-addressed store, hash-verified

378
379
380 function executeDispatch(event, listener, inst) {
381 var type = event.type || 'unknown-event';
382 event.currentTarget = getNodeFromInstance(inst);
383 invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event);
384 event.currentTarget = null;
385 }
386 /**
387 * Standard/simple iteration through an event's collected dispatches.
388 */

Callers 1

executeDispatchesInOrderFunction · 0.85

Tested by

no test coverage detected