* 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)
| 1489 | * @param {*} inst Internal component instance |
| 1490 | */ |
| 1491 | function executeDispatch(event, simulated, listener, inst) { |
| 1492 | var type = event.type || 'unknown-event'; |
| 1493 | event.currentTarget = getNodeFromInstance(inst); |
| 1494 | ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); |
| 1495 | event.currentTarget = null; |
| 1496 | } |
| 1497 | |
| 1498 | /** |
| 1499 | * Standard/simple iteration through an event's collected dispatches. |
no outgoing calls
no test coverage detected