* 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)
| 2854 | * @param {*} inst Internal component instance |
| 2855 | */ |
| 2856 | function executeDispatch(event, simulated, listener, inst) { |
| 2857 | var type = event.type || 'unknown-event'; |
| 2858 | event.currentTarget = EventPluginUtils.getNodeFromInstance(inst); |
| 2859 | if (simulated) { |
| 2860 | ReactErrorUtils.invokeGuardedCallbackWithCatch(type, listener, event); |
| 2861 | } else { |
| 2862 | ReactErrorUtils.invokeGuardedCallback(type, listener, event); |
| 2863 | } |
| 2864 | event.currentTarget = null; |
| 2865 | } |
| 2866 | |
| 2867 | /** |
| 2868 | * Standard/simple iteration through an event's collected dispatches. |
no outgoing calls
no test coverage detected
searching dependent graphs…