* 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)
| 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 | */ |
no test coverage detected