(fn, a, b, c, d)
| 796 | } |
| 797 | } // This is for the React Flare event system |
| 798 | function discreteUpdates(fn, a, b, c, d) { |
| 799 | var prevIsInsideEventHandler = isInsideEventHandler; |
| 800 | isInsideEventHandler = true; |
| 801 | |
| 802 | try { |
| 803 | return discreteUpdatesImpl(fn, a, b, c, d); |
| 804 | } finally { |
| 805 | isInsideEventHandler = prevIsInsideEventHandler; |
| 806 | |
| 807 | if (!isInsideEventHandler) { |
| 808 | finishEventHandler(); |
| 809 | } |
| 810 | } |
| 811 | } |
| 812 | function flushDiscreteUpdatesIfNeeded(timeStamp) { |
| 813 | // event.timeStamp isn't overly reliable due to inconsistencies in |
| 814 | // how different browsers have historically provided the time stamp. |
no test coverage detected