* Execution of a "direct" dispatch - there must be at most one dispatch * accumulated on the event or it is considered an error. It doesn't really make * sense for an event with multiple dispatches (bubbled) to keep track of the * return values at each dispatch execution, but it does tend to make
(event)
| 5842 | * |
| 5843 | * @return {*} The return value of executing the single dispatch. |
| 5844 | */function executeDirectDispatch(event){{validateEventDispatches(event);}var dispatchListener=event._dispatchListeners;var dispatchInstance=event._dispatchInstances;!!Array.isArray(dispatchListener)?invariant(false,'executeDirectDispatch(...): Invalid `event`.'):void 0;event.currentTarget=dispatchListener?EventPluginUtils.getNodeFromInstance(dispatchInstance):null;var res=dispatchListener?dispatchListener(event):null;event.currentTarget=null;event._dispatchListeners=null;event._dispatchInstances=null;return res;}/** |
| 5845 | * @param {SyntheticEvent} event |
| 5846 | * @return {boolean} True iff number of dispatches accumulated is greater than 0. |
| 5847 | */function hasDispatches(event){return!!event._dispatchListeners;}/** |
nothing calls this directly
no test coverage detected