(fn)
| 13979 | } |
| 13980 | |
| 13981 | function flushControlled(fn) { |
| 13982 | var previousIsBatchingUpdates = isBatchingUpdates; |
| 13983 | isBatchingUpdates = true; |
| 13984 | try { |
| 13985 | syncUpdates(fn); |
| 13986 | } finally { |
| 13987 | isBatchingUpdates = previousIsBatchingUpdates; |
| 13988 | if (!isBatchingUpdates && !isRendering) { |
| 13989 | performWork(Sync, false, null); |
| 13990 | } |
| 13991 | } |
| 13992 | } |
| 13993 | |
| 13994 | return { |
| 13995 | recalculateCurrentTime: recalculateCurrentTime, |
nothing calls this directly
no test coverage detected