* 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)
| 2128 | * @param {*} inst Internal component instance |
| 2129 | */ |
| 2130 | function executeDispatch(event, simulated, listener, inst) { |
| 2131 | var type = event.type || 'unknown-event'; |
| 2132 | event.currentTarget = getNodeFromInstance(inst); |
| 2133 | ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); |
| 2134 | event.currentTarget = null; |
| 2135 | } |
| 2136 | |
| 2137 | /** |
| 2138 | * Standard/simple iteration through an event's collected dispatches. |
no outgoing calls
no test coverage detected