(fn, a, b)
| 780 | } |
| 781 | } |
| 782 | function batchedEventUpdates(fn, a, b) { |
| 783 | if (isBatchingEventUpdates) { |
| 784 | // If we are currently inside another batch, we need to wait until it |
| 785 | // fully completes before restoring state. |
| 786 | return fn(a, b); |
| 787 | } |
| 788 | |
| 789 | isBatchingEventUpdates = true; |
| 790 | |
| 791 | try { |
| 792 | return batchedEventUpdatesImpl(fn, a, b); |
| 793 | } finally { |
| 794 | isBatchingEventUpdates = false; |
| 795 | finishEventHandler(); |
| 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; |
no test coverage detected