Fix casing of shouldflushDiscreteUpdates

shouldflushDiscreteUpdates -> shouldFlushDiscreteUpdates
This commit is contained in:
Andrew Clark
2019-05-31 17:46:30 -07:00
parent 91635dd483
commit 7aa35ceae0
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -610,7 +610,7 @@ export function processEventQueue(): void {
return;
}
if (discrete) {
if (shouldflushDiscreteUpdates(currentTimeStamp)) {
if (shouldFlushDiscreteUpdates(currentTimeStamp)) {
flushDiscreteUpdates();
}
discreteUpdates(() => {
@@ -1019,7 +1019,7 @@ export function generateListeningKey(
let lastDiscreteEventTimeStamp = 0;
export function shouldflushDiscreteUpdates(timeStamp: number): boolean {
export function shouldFlushDiscreteUpdates(timeStamp: number): boolean {
// event.timeStamp isn't overly reliable due to inconsistencies in
// how different browsers have historically provided the time stamp.
// Some browsers provide high-resolution time stamps for all events,
+2 -2
View File
@@ -19,7 +19,7 @@ import {
import {runExtractedPluginEventsInBatch} from 'events/EventPluginHub';
import {
dispatchEventForResponderEventSystem,
shouldflushDiscreteUpdates,
shouldFlushDiscreteUpdates,
} from '../events/DOMEventResponderSystem';
import {isFiberMounted} from 'react-reconciler/reflection';
import {HostRoot} from 'shared/ReactWorkTags';
@@ -229,7 +229,7 @@ function trapEventForPluginEventSystem(
}
function dispatchDiscreteEvent(topLevelType, eventSystemFlags, nativeEvent) {
if (!enableEventAPI || shouldflushDiscreteUpdates(nativeEvent.timeStamp)) {
if (!enableEventAPI || shouldFlushDiscreteUpdates(nativeEvent.timeStamp)) {
flushDiscreteUpdates();
}
discreteUpdates(dispatchEvent, topLevelType, eventSystemFlags, nativeEvent);