diff --git a/scripts/rollup/shims/facebook-www/DOMProperty.js b/scripts/rollup/shims/facebook-www/DOMProperty.js index 36007aaec3..09bbc5012c 100644 --- a/scripts/rollup/shims/facebook-www/DOMProperty.js +++ b/scripts/rollup/shims/facebook-www/DOMProperty.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule DOMProperty - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/EventPluginHub.js b/scripts/rollup/shims/facebook-www/EventPluginHub.js index 40d1fe1162..e332f5ec80 100644 --- a/scripts/rollup/shims/facebook-www/EventPluginHub.js +++ b/scripts/rollup/shims/facebook-www/EventPluginHub.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPluginHub - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/EventPluginUtils.js b/scripts/rollup/shims/facebook-www/EventPluginUtils.js index a3b5a59935..610db82c3a 100644 --- a/scripts/rollup/shims/facebook-www/EventPluginUtils.js +++ b/scripts/rollup/shims/facebook-www/EventPluginUtils.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPluginUtils - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/EventPropagators.js b/scripts/rollup/shims/facebook-www/EventPropagators.js index 6bf63a3025..a7c17e2656 100644 --- a/scripts/rollup/shims/facebook-www/EventPropagators.js +++ b/scripts/rollup/shims/facebook-www/EventPropagators.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPropagators - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/PooledClass.js b/scripts/rollup/shims/facebook-www/PooledClass.js index 565c9c362b..c93757440c 100644 --- a/scripts/rollup/shims/facebook-www/PooledClass.js +++ b/scripts/rollup/shims/facebook-www/PooledClass.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule PooledClass - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter.js b/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter.js index 8449b820ff..ce214f4ea1 100644 --- a/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter.js +++ b/scripts/rollup/shims/facebook-www/ReactBrowserEventEmitter.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactBrowserEventEmitter - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactChildren.js b/scripts/rollup/shims/facebook-www/ReactChildren.js index 0cfe8cf6be..021b8e6262 100644 --- a/scripts/rollup/shims/facebook-www/ReactChildren.js +++ b/scripts/rollup/shims/facebook-www/ReactChildren.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactChildren - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactCurrentOwner.js b/scripts/rollup/shims/facebook-www/ReactCurrentOwner.js index b7ae3ad863..17de73f260 100644 --- a/scripts/rollup/shims/facebook-www/ReactCurrentOwner.js +++ b/scripts/rollup/shims/facebook-www/ReactCurrentOwner.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactCurrentOwner - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactDOMComponentTree.js b/scripts/rollup/shims/facebook-www/ReactDOMComponentTree.js index afb20bfec1..9f3f214d6a 100644 --- a/scripts/rollup/shims/facebook-www/ReactDOMComponentTree.js +++ b/scripts/rollup/shims/facebook-www/ReactDOMComponentTree.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMComponentTree - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactDOMInputSelection.js b/scripts/rollup/shims/facebook-www/ReactDOMInputSelection.js index 40f4557719..2725fd4d6c 100644 --- a/scripts/rollup/shims/facebook-www/ReactDOMInputSelection.js +++ b/scripts/rollup/shims/facebook-www/ReactDOMInputSelection.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMInputSelection - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactDOMSelection.js b/scripts/rollup/shims/facebook-www/ReactDOMSelection.js index 5154cb9874..71c5fd1a60 100644 --- a/scripts/rollup/shims/facebook-www/ReactDOMSelection.js +++ b/scripts/rollup/shims/facebook-www/ReactDOMSelection.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMSelection - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactErrorUtils.js b/scripts/rollup/shims/facebook-www/ReactErrorUtils.js index 1727cdba7b..0adabdd397 100644 --- a/scripts/rollup/shims/facebook-www/ReactErrorUtils.js +++ b/scripts/rollup/shims/facebook-www/ReactErrorUtils.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactErrorUtils - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js b/scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js index 9f051514cc..771d62ddea 100644 --- a/scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js +++ b/scripts/rollup/shims/facebook-www/ReactFiberErrorLogger.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactFiberErrorLogger - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactInputSelection.js b/scripts/rollup/shims/facebook-www/ReactInputSelection.js index 1eb30aa6fd..a43bf82265 100644 --- a/scripts/rollup/shims/facebook-www/ReactInputSelection.js +++ b/scripts/rollup/shims/facebook-www/ReactInputSelection.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactInputSelection - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactInstanceMap.js b/scripts/rollup/shims/facebook-www/ReactInstanceMap.js index 07260ab89f..4543e98185 100644 --- a/scripts/rollup/shims/facebook-www/ReactInstanceMap.js +++ b/scripts/rollup/shims/facebook-www/ReactInstanceMap.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactInstanceMap - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactPerf.js b/scripts/rollup/shims/facebook-www/ReactPerf.js index 1d777ddf14..75835df0fa 100644 --- a/scripts/rollup/shims/facebook-www/ReactPerf.js +++ b/scripts/rollup/shims/facebook-www/ReactPerf.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactPerf - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ReactTestUtils.js b/scripts/rollup/shims/facebook-www/ReactTestUtils.js index f7a9c7d175..dafb421d1d 100644 --- a/scripts/rollup/shims/facebook-www/ReactTestUtils.js +++ b/scripts/rollup/shims/facebook-www/ReactTestUtils.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactTestUtils - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/SyntheticEvent.js b/scripts/rollup/shims/facebook-www/SyntheticEvent.js index c8d3a22e33..dc59584824 100644 --- a/scripts/rollup/shims/facebook-www/SyntheticEvent.js +++ b/scripts/rollup/shims/facebook-www/SyntheticEvent.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticEvent - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/SyntheticKeyboardEvent.js b/scripts/rollup/shims/facebook-www/SyntheticKeyboardEvent.js index 4ca0db871c..f5ce292759 100644 --- a/scripts/rollup/shims/facebook-www/SyntheticKeyboardEvent.js +++ b/scripts/rollup/shims/facebook-www/SyntheticKeyboardEvent.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticKeyboardEvent - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/SyntheticMouseEvent.js b/scripts/rollup/shims/facebook-www/SyntheticMouseEvent.js index 97e42801af..0d371be43d 100644 --- a/scripts/rollup/shims/facebook-www/SyntheticMouseEvent.js +++ b/scripts/rollup/shims/facebook-www/SyntheticMouseEvent.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticMouseEvent - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/SyntheticUIEvent.js b/scripts/rollup/shims/facebook-www/SyntheticUIEvent.js index dd35f737f0..82a98fb3e3 100644 --- a/scripts/rollup/shims/facebook-www/SyntheticUIEvent.js +++ b/scripts/rollup/shims/facebook-www/SyntheticUIEvent.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule SyntheticUIEvent - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/ViewportMetrics.js b/scripts/rollup/shims/facebook-www/ViewportMetrics.js index c5e7286d21..02807a38a4 100644 --- a/scripts/rollup/shims/facebook-www/ViewportMetrics.js +++ b/scripts/rollup/shims/facebook-www/ViewportMetrics.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ViewportMetrics - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/adler32.js b/scripts/rollup/shims/facebook-www/adler32.js index fee1f09b01..e0db6a5562 100644 --- a/scripts/rollup/shims/facebook-www/adler32.js +++ b/scripts/rollup/shims/facebook-www/adler32.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule adler32 - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/findDOMNode.js b/scripts/rollup/shims/facebook-www/findDOMNode.js index d1efcd3054..4ce72fd0d9 100644 --- a/scripts/rollup/shims/facebook-www/findDOMNode.js +++ b/scripts/rollup/shims/facebook-www/findDOMNode.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule findDOMNode - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/flattenChildren.js b/scripts/rollup/shims/facebook-www/flattenChildren.js index a728fd79d1..e0e76d6f17 100644 --- a/scripts/rollup/shims/facebook-www/flattenChildren.js +++ b/scripts/rollup/shims/facebook-www/flattenChildren.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule flattenChildren - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/getComponentName.js b/scripts/rollup/shims/facebook-www/getComponentName.js index fbad677f55..9dcdbb8f9a 100644 --- a/scripts/rollup/shims/facebook-www/getComponentName.js +++ b/scripts/rollup/shims/facebook-www/getComponentName.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getComponentName - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/getEventCharCode.js b/scripts/rollup/shims/facebook-www/getEventCharCode.js index dae124e13e..dcaf75734c 100644 --- a/scripts/rollup/shims/facebook-www/getEventCharCode.js +++ b/scripts/rollup/shims/facebook-www/getEventCharCode.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getEventCharCode - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/getEventKey.js b/scripts/rollup/shims/facebook-www/getEventKey.js index 44a0377b5d..d32166e4ac 100644 --- a/scripts/rollup/shims/facebook-www/getEventKey.js +++ b/scripts/rollup/shims/facebook-www/getEventKey.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getEventKey - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/getEventTarget.js b/scripts/rollup/shims/facebook-www/getEventTarget.js index 37bb87693c..c7ab395956 100644 --- a/scripts/rollup/shims/facebook-www/getEventTarget.js +++ b/scripts/rollup/shims/facebook-www/getEventTarget.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getEventTarget - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/getVendorPrefixedEventName.js b/scripts/rollup/shims/facebook-www/getVendorPrefixedEventName.js index f3ade0b2cd..fa4a5b1a8e 100644 --- a/scripts/rollup/shims/facebook-www/getVendorPrefixedEventName.js +++ b/scripts/rollup/shims/facebook-www/getVendorPrefixedEventName.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule getVendorPrefixedEventName - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/isEventSupported.js b/scripts/rollup/shims/facebook-www/isEventSupported.js index 363eb7860e..0de4f444a2 100644 --- a/scripts/rollup/shims/facebook-www/isEventSupported.js +++ b/scripts/rollup/shims/facebook-www/isEventSupported.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule isEventSupported - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/setInnerHTML.js b/scripts/rollup/shims/facebook-www/setInnerHTML.js index 360310cb1d..99c074803a 100644 --- a/scripts/rollup/shims/facebook-www/setInnerHTML.js +++ b/scripts/rollup/shims/facebook-www/setInnerHTML.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule setInnerHTML - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/facebook-www/setTextContent.js b/scripts/rollup/shims/facebook-www/setTextContent.js index 2b47f8b5e8..76ed7088d0 100644 --- a/scripts/rollup/shims/facebook-www/setTextContent.js +++ b/scripts/rollup/shims/facebook-www/setTextContent.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule setTextContent - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/react-native/ReactDebugTool.js b/scripts/rollup/shims/react-native/ReactDebugTool.js index ace94621c9..04abe07ff5 100644 --- a/scripts/rollup/shims/react-native/ReactDebugTool.js +++ b/scripts/rollup/shims/react-native/ReactDebugTool.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDebugTool - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/react-native/ReactErrorUtils.js b/scripts/rollup/shims/react-native/ReactErrorUtils.js index 974f7d5b89..57c4dec8ba 100644 --- a/scripts/rollup/shims/react-native/ReactErrorUtils.js +++ b/scripts/rollup/shims/react-native/ReactErrorUtils.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactErrorUtils - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/react-native/ReactPerf.js b/scripts/rollup/shims/react-native/ReactPerf.js index d07ad1c569..e879d267a8 100644 --- a/scripts/rollup/shims/react-native/ReactPerf.js +++ b/scripts/rollup/shims/react-native/ReactPerf.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactPerf - * @flow */ 'use strict'; diff --git a/scripts/rollup/shims/react-native/TouchHistoryMath.js b/scripts/rollup/shims/react-native/TouchHistoryMath.js index 3ec4f9629a..b50cb29684 100644 --- a/scripts/rollup/shims/react-native/TouchHistoryMath.js +++ b/scripts/rollup/shims/react-native/TouchHistoryMath.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule TouchHistoryMath - * @flow */ 'use strict'; diff --git a/src/renderers/dom/shared/eventPlugins/TapEventPlugin.js b/src/renderers/dom/shared/eventPlugins/TapEventPlugin.js index 24a0d2eff6..bd780180cb 100644 --- a/src/renderers/dom/shared/eventPlugins/TapEventPlugin.js +++ b/src/renderers/dom/shared/eventPlugins/TapEventPlugin.js @@ -21,10 +21,6 @@ var ViewportMetrics = require('ViewportMetrics'); var isStartish = EventPluginUtils.isStartish; var isEndish = EventPluginUtils.isEndish; -import type {EventTypes, PluginModule} from 'PluginModuleType'; -import type {ReactInstance} from 'ReactInstanceType'; -import type {TopLevelTypes} from 'EventConstants'; - /** * We are extending the Flow 'Touch' declaration to enable using bracket * notation to access properties. @@ -99,7 +95,7 @@ var dependencies = ['topMouseDown', 'topMouseMove', 'topMouseUp'].concat( touchEvents, ); -var eventTypes: EventTypes = { +var eventTypes = { touchTap: { phasedRegistrationNames: { bubbled: 'onTouchTap', @@ -113,14 +109,14 @@ var usedTouch = false; var usedTouchTime = 0; var TOUCH_DELAY = 1000; -var TapEventPlugin: PluginModule<_Touch> = { +var TapEventPlugin = { tapMoveThreshold: tapMoveThreshold, eventTypes: eventTypes, extractEvents: function( - topLevelType: TopLevelTypes, - targetInst: ReactInstance, + topLevelType: mixed, + targetInst: mixed, nativeEvent: _Touch, nativeEventTarget: EventTarget, ) { diff --git a/src/shared/utils/flattenChildren.js b/src/shared/utils/flattenChildren.js index 21a5da7140..879635466a 100644 --- a/src/shared/utils/flattenChildren.js +++ b/src/shared/utils/flattenChildren.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule flattenChildren - * @flow */ 'use strict'; diff --git a/src/shared/utils/getComponentName.js b/src/shared/utils/getComponentName.js index 76ee7278e1..93078a6ab4 100644 --- a/src/shared/utils/getComponentName.js +++ b/src/shared/utils/getComponentName.js @@ -6,7 +6,6 @@ * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * - * @flow * @providesModule getComponentName */