* 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)
| 2266 | * @param {*} inst Internal component instance |
| 2267 | */ |
| 2268 | function executeDispatch(event, simulated, listener, inst) { |
| 2269 | var type = event.type || 'unknown-event'; |
| 2270 | event.currentTarget = getNodeFromInstance(inst); |
| 2271 | ReactErrorUtils.invokeGuardedCallbackAndCatchFirstError(type, listener, undefined, event); |
| 2272 | event.currentTarget = null; |
| 2273 | } |
| 2274 | |
| 2275 | /** |
| 2276 | * Standard/simple iteration through an event's collected dispatches. |
no outgoing calls
no test coverage detected