* 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)
| 2221 | * @param {*} inst Internal component instance |
| 2222 | */ |
| 2223 | function executeDispatch(event, simulated, listener, inst) { |
| 2224 | var type = event.type || 'unknown-event'; |
| 2225 | event.currentTarget = getNodeFromInstance(inst); |
| 2226 | ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); |
| 2227 | event.currentTarget = null; |
| 2228 | } |
| 2229 | |
| 2230 | /** |
| 2231 | * Standard/simple iteration through an event's collected dispatches. |
no outgoing calls
no test coverage detected