Permalink
Browse files

Convert react-native-github/Libraries to let/const

Reviewed By: sahrens

Differential Revision: D7956042

fbshipit-source-id: 221851aa311f3cdd6326497352b366048db0a1bb
  • Loading branch information...
TheSavior authored and facebook-github-bot committed May 10, 2018
1 parent 266016c commit 8f5ebe5952d0675b463137103a82f3fb0c26ae0d
Showing with 1,018 additions and 1,036 deletions.
  1. +8 −8 Libraries/ART/ARTSerializablePath.js
  2. +79 −79 Libraries/ART/ReactNativeART.js
  3. +5 −5 Libraries/Alert/Alert.js
  4. +8 −8 Libraries/Alert/AlertIOS.js
  5. +1 −1 Libraries/Alert/RCTAlertManager.android.js
  6. +1 −1 Libraries/Alert/RCTAlertManager.ios.js
  7. +1 −1 Libraries/Animated/src/AnimatedWeb.js
  8. +2 −2 Libraries/Animated/src/NativeAnimatedHelper.js
  9. +4 −4 Libraries/Animated/src/SpringConfig.js
  10. +105 −105 Libraries/Animated/src/__tests__/Animated-test.js
  11. +21 −21 Libraries/Animated/src/__tests__/Easing-test.js
  12. +21 −21 Libraries/Animated/src/__tests__/Interpolation-test.js
  13. +17 −32 Libraries/Animated/src/__tests__/bezier-test.js
  14. +19 −19 Libraries/Animated/src/bezier.js
  15. +2 −2 Libraries/BatchedBridge/__mocks__/MessageQueueTestConfig.js
  16. +1 −1 Libraries/BatchedBridge/__mocks__/MessageQueueTestModule.js
  17. +1 −1 Libraries/Blob/__tests__/Blob-test.js
  18. +2 −2 Libraries/Blob/__tests__/BlobManager-test.js
  19. +2 −2 Libraries/Blob/__tests__/FileReader-test.js
  20. +18 −18 Libraries/BugReporting/getReactData.js
  21. +2 −2 Libraries/CameraRoll/ImagePickerIOS.js
  22. +18 −18 Libraries/Color/normalizeColor.js
  23. +5 −5 Libraries/Core/Devtools/__tests__/parseErrorStack-test.js
  24. +1 −1 Libraries/Core/__mocks__/ErrorUtils.js
  25. +1 −1 Libraries/Experimental/IncrementalExample.js
  26. +11 −11 Libraries/Geolocation/Geolocation.js
  27. +1 −1 Libraries/Image/AssetRegistry.js
  28. +7 −7 Libraries/Image/AssetSourceResolver.js
  29. +21 −21 Libraries/Image/Image.android.js
  30. +2 −2 Libraries/Image/ImageResizeMode.js
  31. +7 −7 Libraries/Image/ImageStylePropTypes.js
  32. +1 −1 Libraries/Image/RelativeImageStub.js
  33. +7 −7 Libraries/Image/__tests__/resolveAssetSource-test.js
  34. +1 −1 Libraries/Image/resolveAssetSource.js
  35. +4 −4 Libraries/Inspector/BorderBox.js
  36. +12 −12 Libraries/Inspector/BoxInspector.js
  37. +12 −12 Libraries/Inspector/ElementBox.js
  38. +10 −10 Libraries/Inspector/InspectorOverlay.js
  39. +10 −10 Libraries/Inspector/PerformanceOverlay.js
  40. +7 −7 Libraries/Inspector/StyleInspector.js
  41. +4 −4 Libraries/Inspector/resolveBoxStyle.js
  42. +4 −4 Libraries/Interaction/InteractionManager.js
  43. +3 −3 Libraries/Interaction/InteractionMixin.js
  44. +6 −6 Libraries/Interaction/__tests__/InteractionMixin-test.js
  45. +69 −69 Libraries/Lists/ListView/ListView.js
  46. +30 −30 Libraries/Lists/ListView/ListViewDataSource.js
  47. +1 −1 Libraries/Modal/Modal.js
  48. +2 −2 Libraries/Network/FormData.js
  49. +6 −6 Libraries/Network/XHRInterceptor.js
  50. +3 −3 Libraries/Network/XMLHttpRequest.js
  51. +4 −4 Libraries/PushNotificationIOS/PushNotificationIOS.js
  52. +10 −10 Libraries/RCTTest/SnapshotViewIOS.ios.js
  53. +8 −8 Libraries/ReactNative/UIManagerStatTracker.js
  54. +1 −1 Libraries/ReactNative/YellowBox.js
  55. +2 −2 Libraries/ReactNative/queryLayoutByID.js
  56. +2 −2 Libraries/Sample/Sample.android.js
  57. +2 −2 Libraries/Sample/Sample.ios.js
  58. +1 −1 Libraries/Settings/Settings.android.js
  59. +8 −8 Libraries/Settings/Settings.ios.js
  60. +12 −12 Libraries/Storage/AsyncStorage.js
  61. +4 −4 Libraries/StyleSheet/ColorPropType.js
  62. +2 −2 Libraries/StyleSheet/LayoutPropTypes.js
  63. +3 −3 Libraries/StyleSheet/PointPropType.js
  64. +4 −4 Libraries/StyleSheet/StyleSheetPropType.js
  65. +11 −11 Libraries/StyleSheet/StyleSheetValidation.js
  66. +5 −5 Libraries/StyleSheet/TransformPropTypes.js
  67. +12 −12 Libraries/StyleSheet/__tests__/flattenStyle-test.js
  68. +1 −1 Libraries/StyleSheet/__tests__/normalizeColor-test.js
  69. +18 −18 Libraries/StyleSheet/__tests__/processColor-test.js
  70. +3 −3 Libraries/StyleSheet/__tests__/setNormalizedColorAlpha-test.js
  71. +4 −4 Libraries/StyleSheet/flattenStyle.js
  72. +14 −14 Libraries/StyleSheet/processTransform.js
  73. +8 −8 Libraries/Text/TextUpdateTest.js
  74. +3 −3 Libraries/Utilities/BackAndroid.js
  75. +8 −8 Libraries/Utilities/BackHandler.android.js
  76. +4 −4 Libraries/Utilities/BackHandler.ios.js
  77. +7 −7 Libraries/Utilities/Dimensions.js
  78. +1 −1 Libraries/Utilities/HMRLoadingView.android.js
  79. +2 −2 Libraries/Utilities/HeapCapture.js
  80. +54 −57 Libraries/Utilities/MatrixMath.js
  81. +2 −2 Libraries/Utilities/PixelRatio.js
  82. +4 −4 Libraries/Utilities/__tests__/MatrixMath-test.js
  83. +2 −2 Libraries/Utilities/__tests__/Platform-test.js
  84. +34 −34 Libraries/Utilities/__tests__/buildStyleInterpolator-test.js
  85. +10 −10 Libraries/Utilities/__tests__/deepFreezeAndThrowOnMutationInDev-test.js
  86. +1 −1 Libraries/Utilities/__tests__/groupByEveryN-test.js
  87. +1 −1 Libraries/Utilities/__tests__/truncate-test.js
  88. +43 −43 Libraries/Utilities/buildStyleInterpolator.js
  89. +9 −9 Libraries/Utilities/createStrictShapeTypeChecker.js
  90. +1 −1 Libraries/Utilities/deepFreezeAndThrowOnMutationInDev.js
  91. +2 −2 Libraries/Utilities/differ/__tests__/deepDiffer-test.js
  92. +5 −5 Libraries/Utilities/differ/deepDiffer.js
  93. +2 −2 Libraries/Utilities/differ/insetsDiffer.js
  94. +1 −1 Libraries/Utilities/differ/matricesDiffer.js
  95. +2 −2 Libraries/Utilities/differ/pointsDiffer.js
  96. +2 −2 Libraries/Utilities/differ/sizesDiffer.js
  97. +1 −1 Libraries/Utilities/dismissKeyboard.js
  98. +3 −3 Libraries/Utilities/groupByEveryN.js
  99. +2 −2 Libraries/Utilities/logError.js
  100. +2 −2 Libraries/Utilities/mergeIntoFast.js
  101. +2 −2 Libraries/Utilities/stringifySafe.js
  102. +2 −2 Libraries/Utilities/truncate.js
  103. +5 −5 Libraries/Vibration/Vibration.js
  104. +2 −2 Libraries/Vibration/VibrationIOS.android.js
  105. +3 −3 Libraries/Vibration/VibrationIOS.ios.js
  106. +1 −1 Libraries/WebSocket/__tests__/WebSocket-test.js
  107. +36 −36 Libraries/vendor/core/Map.js
  108. +9 −9 Libraries/vendor/core/Set.js
  109. +2 −2 Libraries/vendor/core/_shouldPolyfillES6Collection.js
  110. +2 −2 Libraries/vendor/core/getObjectValues.js
  111. +1 −1 Libraries/vendor/core/isEmpty.js
  112. +4 −4 Libraries/vendor/core/mergeHelpers.js
  113. +15 −15 Libraries/vendor/core/toIterator.js
  114. +1 −1 Libraries/vendor/document/selection/DocumentSelectionState.js
@@ -9,16 +9,16 @@
// TODO: Move this into an ART mode called "serialized" or something
var Class = require('art/core/class.js');
var Path = require('art/core/path.js');
const Class = require('art/core/class.js');
const Path = require('art/core/path.js');
var MOVE_TO = 0;
var CLOSE = 1;
var LINE_TO = 2;
var CURVE_TO = 3;
var ARC = 4;
const MOVE_TO = 0;
const CLOSE = 1;
const LINE_TO = 2;
const CURVE_TO = 3;
const ARC = 4;
var SerializablePath = Class(Path, {
const SerializablePath = Class(Path, {
initialize: function(path) {
this.reset();
Oops, something went wrong.

0 comments on commit 8f5ebe5

Please sign in to comment.