react 0.12.1 → 0.13.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/dist/JSXTransformer.js +352 -251
  2. package/dist/react-with-addons.js +5409 -4242
  3. package/dist/react-with-addons.min.js +5 -6
  4. package/dist/react.js +5012 -4136
  5. package/dist/react.min.js +5 -6
  6. package/lib/AutoFocusMixin.js +1 -1
  7. package/lib/BeforeInputEventPlugin.js +389 -112
  8. package/lib/CSSProperty.js +6 -3
  9. package/lib/CSSPropertyOperations.js +57 -10
  10. package/lib/CallbackQueue.js +2 -2
  11. package/lib/ChangeEventPlugin.js +3 -3
  12. package/lib/ClientReactRootIndex.js +1 -1
  13. package/lib/DOMChildrenOperations.js +6 -4
  14. package/lib/DOMProperty.js +1 -1
  15. package/lib/DOMPropertyOperations.js +4 -2
  16. package/lib/Danger.js +7 -6
  17. package/lib/DefaultEventPluginOrder.js +1 -2
  18. package/lib/EnterLeaveEventPlugin.js +1 -1
  19. package/lib/EventConstants.js +1 -1
  20. package/lib/EventPluginHub.js +9 -7
  21. package/lib/EventPluginRegistry.js +1 -1
  22. package/lib/EventPluginUtils.js +1 -1
  23. package/lib/EventPropagators.js +1 -1
  24. package/lib/ExecutionEnvironment.js +2 -3
  25. package/lib/FallbackCompositionState.js +89 -0
  26. package/lib/HTMLDOMPropertyConfig.js +19 -7
  27. package/lib/LinkedStateMixin.js +1 -1
  28. package/lib/LinkedValueUtils.js +3 -3
  29. package/lib/LocalEventTrapMixin.js +9 -2
  30. package/lib/MobileSafariClickEventPlugin.js +1 -1
  31. package/lib/Object.assign.js +3 -1
  32. package/lib/PooledClass.js +1 -1
  33. package/lib/React.js +17 -51
  34. package/lib/ReactBrowserComponentMixin.js +3 -13
  35. package/lib/ReactBrowserEventEmitter.js +4 -6
  36. package/lib/ReactCSSTransitionGroup.js +4 -1
  37. package/lib/ReactCSSTransitionGroupChild.js +12 -2
  38. package/lib/ReactChildReconciler.js +125 -0
  39. package/lib/ReactChildren.js +10 -8
  40. package/lib/ReactClass.js +916 -0
  41. package/lib/ReactComponent.js +81 -404
  42. package/lib/ReactComponentBrowserEnvironment.js +10 -83
  43. package/lib/ReactComponentEnvironment.js +57 -0
  44. package/lib/ReactComponentWithPureRenderMixin.js +1 -1
  45. package/lib/ReactCompositeComponent.js +533 -1132
  46. package/lib/ReactContext.js +6 -2
  47. package/lib/ReactCurrentOwner.js +1 -1
  48. package/lib/ReactDOM.js +3 -8
  49. package/lib/ReactDOMButton.js +5 -6
  50. package/lib/ReactDOMComponent.js +110 -92
  51. package/lib/ReactDOMForm.js +5 -6
  52. package/lib/ReactDOMIDOperations.js +56 -74
  53. package/lib/ReactDOMImg.js +4 -6
  54. package/lib/ReactDOMInput.js +5 -6
  55. package/lib/ReactDOMOption.js +5 -6
  56. package/lib/ReactDOMSelect.js +57 -65
  57. package/lib/ReactDOMSelection.js +6 -2
  58. package/lib/{ReactTextComponent.js → ReactDOMTextComponent.js} +48 -35
  59. package/lib/ReactDOMTextarea.js +5 -6
  60. package/lib/ReactDefaultBatchingStrategy.js +4 -4
  61. package/lib/ReactDefaultInjection.js +14 -8
  62. package/lib/ReactDefaultPerf.js +16 -7
  63. package/lib/ReactDefaultPerfAnalysis.js +1 -1
  64. package/lib/ReactElement.js +23 -15
  65. package/lib/ReactElementValidator.js +209 -57
  66. package/lib/ReactEmptyComponent.js +29 -11
  67. package/lib/ReactEventEmitterMixin.js +1 -1
  68. package/lib/ReactEventListener.js +3 -4
  69. package/lib/ReactInjection.js +7 -5
  70. package/lib/ReactInputSelection.js +3 -4
  71. package/lib/ReactInstanceHandles.js +3 -2
  72. package/lib/ReactInstanceMap.js +47 -0
  73. package/lib/ReactLifeCycle.js +35 -0
  74. package/lib/ReactLink.js +1 -1
  75. package/lib/ReactMarkupChecksum.js +1 -1
  76. package/lib/ReactMount.js +239 -68
  77. package/lib/ReactMultiChild.js +49 -47
  78. package/lib/ReactMultiChildUpdateTypes.js +1 -1
  79. package/lib/ReactNativeComponent.js +72 -25
  80. package/lib/ReactOwner.js +4 -48
  81. package/lib/ReactPerf.js +21 -1
  82. package/lib/ReactPropTransferer.js +2 -57
  83. package/lib/ReactPropTypeLocationNames.js +1 -1
  84. package/lib/ReactPropTypeLocations.js +1 -1
  85. package/lib/ReactPropTypes.js +14 -22
  86. package/lib/ReactPutListenerQueue.js +1 -1
  87. package/lib/ReactReconcileTransaction.js +1 -1
  88. package/lib/ReactReconciler.js +107 -0
  89. package/lib/ReactRef.js +70 -0
  90. package/lib/ReactRootIndex.js +1 -1
  91. package/lib/ReactServerRendering.js +5 -3
  92. package/lib/ReactServerRenderingTransaction.js +1 -1
  93. package/lib/ReactStateSetters.js +1 -1
  94. package/lib/ReactTestUtils.js +112 -26
  95. package/lib/ReactTransitionChildMapping.js +1 -1
  96. package/lib/ReactTransitionEvents.js +1 -1
  97. package/lib/ReactTransitionGroup.js +48 -7
  98. package/lib/ReactUpdateQueue.js +264 -0
  99. package/lib/ReactUpdates.js +48 -61
  100. package/lib/ReactWithAddons.js +1 -1
  101. package/lib/SVGDOMPropertyConfig.js +1 -1
  102. package/lib/SelectEventPlugin.js +3 -3
  103. package/lib/ServerReactRootIndex.js +1 -1
  104. package/lib/SimpleEventPlugin.js +1 -1
  105. package/lib/SyntheticClipboardEvent.js +1 -2
  106. package/lib/SyntheticCompositionEvent.js +1 -2
  107. package/lib/SyntheticDragEvent.js +1 -1
  108. package/lib/SyntheticEvent.js +11 -3
  109. package/lib/SyntheticFocusEvent.js +1 -1
  110. package/lib/SyntheticInputEvent.js +1 -2
  111. package/lib/SyntheticKeyboardEvent.js +1 -1
  112. package/lib/SyntheticMouseEvent.js +2 -4
  113. package/lib/SyntheticTouchEvent.js +1 -1
  114. package/lib/SyntheticUIEvent.js +1 -1
  115. package/lib/SyntheticWheelEvent.js +1 -1
  116. package/lib/Transaction.js +3 -3
  117. package/lib/ViewportMetrics.js +2 -5
  118. package/lib/accumulateInto.js +1 -1
  119. package/lib/adler32.js +1 -1
  120. package/lib/cloneWithProps.js +3 -3
  121. package/lib/copyProperties.js +2 -0
  122. package/lib/createFullPageComponent.js +3 -3
  123. package/lib/dangerousStyleValue.js +1 -1
  124. package/lib/escapeTextForBrowser.js +6 -6
  125. package/lib/findDOMNode.js +51 -0
  126. package/lib/flattenChildren.js +11 -22
  127. package/lib/forEachAccumulated.js +1 -1
  128. package/lib/getEventCharCode.js +1 -1
  129. package/lib/getEventKey.js +1 -1
  130. package/lib/getEventModifierState.js +1 -1
  131. package/lib/getEventTarget.js +1 -1
  132. package/lib/getIteratorFn.js +42 -0
  133. package/lib/getNodeForCharacterOffset.js +2 -2
  134. package/lib/getReactRootElementInContainer.js +1 -1
  135. package/lib/getTextContentAccessor.js +1 -1
  136. package/lib/instantiateReactComponent.js +85 -67
  137. package/lib/isEventSupported.js +1 -1
  138. package/lib/isNode.js +3 -4
  139. package/lib/isTextInputElement.js +2 -3
  140. package/lib/joinClasses.js +1 -1
  141. package/lib/keyMirror.js +1 -1
  142. package/lib/memoizeStringOnly.js +4 -5
  143. package/lib/onlyChild.js +1 -1
  144. package/lib/setInnerHTML.js +12 -1
  145. package/lib/shallowEqual.js +1 -1
  146. package/lib/shouldUpdateReactComponent.js +48 -6
  147. package/lib/traverseAllChildren.js +111 -55
  148. package/lib/update.js +1 -1
  149. package/lib/warning.js +12 -1
  150. package/package.json +1 -1
  151. package/lib/CompositionEventPlugin.js +0 -257
  152. package/lib/ReactLegacyElement.js +0 -243
  153. package/lib/deprecated.js +0 -47
@@ -9,7 +9,7 @@
9
9
  * @providesModule ReactUpdates
10
10
  */
11
11
 
12
- "use strict";
12
+ 'use strict';
13
13
 
14
14
  var CallbackQueue = require("./CallbackQueue");
15
15
  var PooledClass = require("./PooledClass");
@@ -104,20 +104,20 @@ assign(
104
104
 
105
105
  PooledClass.addPoolingTo(ReactUpdatesFlushTransaction);
106
106
 
107
- function batchedUpdates(callback, a, b) {
107
+ function batchedUpdates(callback, a, b, c, d) {
108
108
  ensureInjected();
109
- batchingStrategy.batchedUpdates(callback, a, b);
109
+ batchingStrategy.batchedUpdates(callback, a, b, c, d);
110
110
  }
111
111
 
112
112
  /**
113
- * Array comparator for ReactComponents by owner depth
113
+ * Array comparator for ReactComponents by mount ordering.
114
114
  *
115
115
  * @param {ReactComponent} c1 first component you're comparing
116
116
  * @param {ReactComponent} c2 second component you're comparing
117
117
  * @return {number} Return value usable by Array.prototype.sort().
118
118
  */
119
- function mountDepthComparator(c1, c2) {
120
- return c1._mountDepth - c2._mountDepth;
119
+ function mountOrderComparator(c1, c2) {
120
+ return c1._mountOrder - c2._mountOrder;
121
121
  }
122
122
 
123
123
  function runBatchedUpdates(transaction) {
@@ -133,69 +133,64 @@ function runBatchedUpdates(transaction) {
133
133
  // Since reconciling a component higher in the owner hierarchy usually (not
134
134
  // always -- see shouldComponentUpdate()) will reconcile children, reconcile
135
135
  // them before their children by sorting the array.
136
- dirtyComponents.sort(mountDepthComparator);
136
+ dirtyComponents.sort(mountOrderComparator);
137
137
 
138
138
  for (var i = 0; i < len; i++) {
139
- // If a component is unmounted before pending changes apply, ignore them
140
- // TODO: Queue unmounts in the same list to avoid this happening at all
139
+ // If a component is unmounted before pending changes apply, it will still
140
+ // be here, but we assume that it has cleared its _pendingCallbacks and
141
+ // that performUpdateIfNecessary is a noop.
141
142
  var component = dirtyComponents[i];
142
- if (component.isMounted()) {
143
- // If performUpdateIfNecessary happens to enqueue any new updates, we
144
- // shouldn't execute the callbacks until the next render happens, so
145
- // stash the callbacks first
146
- var callbacks = component._pendingCallbacks;
147
- component._pendingCallbacks = null;
148
- component.performUpdateIfNecessary(transaction.reconcileTransaction);
149
-
150
- if (callbacks) {
151
- for (var j = 0; j < callbacks.length; j++) {
152
- transaction.callbackQueue.enqueue(
153
- callbacks[j],
154
- component
155
- );
156
- }
143
+
144
+ // If performUpdateIfNecessary happens to enqueue any new updates, we
145
+ // shouldn't execute the callbacks until the next render happens, so
146
+ // stash the callbacks first
147
+ var callbacks = component._pendingCallbacks;
148
+ component._pendingCallbacks = null;
149
+ component.performUpdateIfNecessary(transaction.reconcileTransaction);
150
+
151
+ if (callbacks) {
152
+ for (var j = 0; j < callbacks.length; j++) {
153
+ transaction.callbackQueue.enqueue(
154
+ callbacks[j],
155
+ component.getPublicInstance()
156
+ );
157
157
  }
158
158
  }
159
159
  }
160
160
  }
161
161
 
162
- var flushBatchedUpdates = ReactPerf.measure(
163
- 'ReactUpdates',
164
- 'flushBatchedUpdates',
165
- function() {
166
- // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents
167
- // array and perform any updates enqueued by mount-ready handlers (i.e.,
168
- // componentDidUpdate) but we need to check here too in order to catch
169
- // updates enqueued by setState callbacks and asap calls.
170
- while (dirtyComponents.length || asapEnqueued) {
171
- if (dirtyComponents.length) {
172
- var transaction = ReactUpdatesFlushTransaction.getPooled();
173
- transaction.perform(runBatchedUpdates, null, transaction);
174
- ReactUpdatesFlushTransaction.release(transaction);
175
- }
162
+ var flushBatchedUpdates = function() {
163
+ // ReactUpdatesFlushTransaction's wrappers will clear the dirtyComponents
164
+ // array and perform any updates enqueued by mount-ready handlers (i.e.,
165
+ // componentDidUpdate) but we need to check here too in order to catch
166
+ // updates enqueued by setState callbacks and asap calls.
167
+ while (dirtyComponents.length || asapEnqueued) {
168
+ if (dirtyComponents.length) {
169
+ var transaction = ReactUpdatesFlushTransaction.getPooled();
170
+ transaction.perform(runBatchedUpdates, null, transaction);
171
+ ReactUpdatesFlushTransaction.release(transaction);
172
+ }
176
173
 
177
- if (asapEnqueued) {
178
- asapEnqueued = false;
179
- var queue = asapCallbackQueue;
180
- asapCallbackQueue = CallbackQueue.getPooled();
181
- queue.notifyAll();
182
- CallbackQueue.release(queue);
183
- }
174
+ if (asapEnqueued) {
175
+ asapEnqueued = false;
176
+ var queue = asapCallbackQueue;
177
+ asapCallbackQueue = CallbackQueue.getPooled();
178
+ queue.notifyAll();
179
+ CallbackQueue.release(queue);
184
180
  }
185
181
  }
182
+ };
183
+ flushBatchedUpdates = ReactPerf.measure(
184
+ 'ReactUpdates',
185
+ 'flushBatchedUpdates',
186
+ flushBatchedUpdates
186
187
  );
187
188
 
188
189
  /**
189
190
  * Mark a component as needing a rerender, adding an optional callback to a
190
191
  * list of functions which will be executed once the rerender occurs.
191
192
  */
192
- function enqueueUpdate(component, callback) {
193
- ("production" !== process.env.NODE_ENV ? invariant(
194
- !callback || typeof callback === "function",
195
- 'enqueueUpdate(...): You called `setProps`, `replaceProps`, ' +
196
- '`setState`, `replaceState`, or `forceUpdate` with a callback that ' +
197
- 'isn\'t callable.'
198
- ) : invariant(!callback || typeof callback === "function"));
193
+ function enqueueUpdate(component) {
199
194
  ensureInjected();
200
195
 
201
196
  // Various parts of our code (such as ReactCompositeComponent's
@@ -212,19 +207,11 @@ function enqueueUpdate(component, callback) {
212
207
  ) : null);
213
208
 
214
209
  if (!batchingStrategy.isBatchingUpdates) {
215
- batchingStrategy.batchedUpdates(enqueueUpdate, component, callback);
210
+ batchingStrategy.batchedUpdates(enqueueUpdate, component);
216
211
  return;
217
212
  }
218
213
 
219
214
  dirtyComponents.push(component);
220
-
221
- if (callback) {
222
- if (component._pendingCallbacks) {
223
- component._pendingCallbacks.push(callback);
224
- } else {
225
- component._pendingCallbacks = [callback];
226
- }
227
- }
228
215
  }
229
216
 
230
217
  /**
@@ -16,7 +16,7 @@
16
16
  * place to live inside React core.
17
17
  */
18
18
 
19
- "use strict";
19
+ 'use strict';
20
20
 
21
21
  var LinkedStateMixin = require("./LinkedStateMixin");
22
22
  var React = require("./React");
@@ -11,7 +11,7 @@
11
11
 
12
12
  /*jslint bitwise: true*/
13
13
 
14
- "use strict";
14
+ 'use strict';
15
15
 
16
16
  var DOMProperty = require("./DOMProperty");
17
17
 
@@ -9,7 +9,7 @@
9
9
  * @providesModule SelectEventPlugin
10
10
  */
11
11
 
12
- "use strict";
12
+ 'use strict';
13
13
 
14
14
  var EventConstants = require("./EventConstants");
15
15
  var EventPropagators = require("./EventPropagators");
@@ -94,8 +94,8 @@ function constructSelectEvent(nativeEvent) {
94
94
  // won't dispatch.
95
95
  if (mouseDown ||
96
96
  activeElement == null ||
97
- activeElement != getActiveElement()) {
98
- return;
97
+ activeElement !== getActiveElement()) {
98
+ return null;
99
99
  }
100
100
 
101
101
  // Only fire when selection has actually changed.
@@ -10,7 +10,7 @@
10
10
  * @typechecks
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  /**
16
16
  * Size of the reactRoot ID space. We generate random numbers for React root
@@ -9,7 +9,7 @@
9
9
  * @providesModule SimpleEventPlugin
10
10
  */
11
11
 
12
- "use strict";
12
+ 'use strict';
13
13
 
14
14
  var EventConstants = require("./EventConstants");
15
15
  var EventPluginUtils = require("./EventPluginUtils");
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticEvent = require("./SyntheticEvent");
16
16
 
@@ -41,4 +41,3 @@ function SyntheticClipboardEvent(dispatchConfig, dispatchMarker, nativeEvent) {
41
41
  SyntheticEvent.augmentClass(SyntheticClipboardEvent, ClipboardEventInterface);
42
42
 
43
43
  module.exports = SyntheticClipboardEvent;
44
-
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticEvent = require("./SyntheticEvent");
16
16
 
@@ -41,4 +41,3 @@ SyntheticEvent.augmentClass(
41
41
  );
42
42
 
43
43
  module.exports = SyntheticCompositionEvent;
44
-
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticMouseEvent = require("./SyntheticMouseEvent");
16
16
 
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var PooledClass = require("./PooledClass");
16
16
 
@@ -88,13 +88,21 @@ assign(SyntheticEvent.prototype, {
88
88
  preventDefault: function() {
89
89
  this.defaultPrevented = true;
90
90
  var event = this.nativeEvent;
91
- event.preventDefault ? event.preventDefault() : event.returnValue = false;
91
+ if (event.preventDefault) {
92
+ event.preventDefault();
93
+ } else {
94
+ event.returnValue = false;
95
+ }
92
96
  this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
93
97
  },
94
98
 
95
99
  stopPropagation: function() {
96
100
  var event = this.nativeEvent;
97
- event.stopPropagation ? event.stopPropagation() : event.cancelBubble = true;
101
+ if (event.stopPropagation) {
102
+ event.stopPropagation();
103
+ } else {
104
+ event.cancelBubble = true;
105
+ }
98
106
  this.isPropagationStopped = emptyFunction.thatReturnsTrue;
99
107
  },
100
108
 
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticUIEvent = require("./SyntheticUIEvent");
16
16
 
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticEvent = require("./SyntheticEvent");
16
16
 
@@ -42,4 +42,3 @@ SyntheticEvent.augmentClass(
42
42
  );
43
43
 
44
44
  module.exports = SyntheticInputEvent;
45
-
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticUIEvent = require("./SyntheticUIEvent");
16
16
 
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticUIEvent = require("./SyntheticUIEvent");
16
16
  var ViewportMetrics = require("./ViewportMetrics");
@@ -48,9 +48,7 @@ var MouseEventInterface = {
48
48
  buttons: null,
49
49
  relatedTarget: function(event) {
50
50
  return event.relatedTarget || (
51
- event.fromElement === event.srcElement ?
52
- event.toElement :
53
- event.fromElement
51
+ ((event.fromElement === event.srcElement ? event.toElement : event.fromElement))
54
52
  );
55
53
  },
56
54
  // "Proprietary" Interface.
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticUIEvent = require("./SyntheticUIEvent");
16
16
 
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticEvent = require("./SyntheticEvent");
16
16
 
@@ -10,7 +10,7 @@
10
10
  * @typechecks static-only
11
11
  */
12
12
 
13
- "use strict";
13
+ 'use strict';
14
14
 
15
15
  var SyntheticMouseEvent = require("./SyntheticMouseEvent");
16
16
 
@@ -9,7 +9,7 @@
9
9
  * @providesModule Transaction
10
10
  */
11
11
 
12
- "use strict";
12
+ 'use strict';
13
13
 
14
14
  var invariant = require("./invariant");
15
15
 
@@ -203,8 +203,8 @@ var Mixin = {
203
203
  // close -- if it's still set to true in the finally block, it means
204
204
  // wrapper.close threw.
205
205
  errorThrown = true;
206
- if (initData !== Transaction.OBSERVED_ERROR) {
207
- wrapper.close && wrapper.close.call(this, initData);
206
+ if (initData !== Transaction.OBSERVED_ERROR && wrapper.close) {
207
+ wrapper.close.call(this, initData);
208
208
  }
209
209
  errorThrown = false;
210
210
  } finally {
@@ -9,9 +9,7 @@
9
9
  * @providesModule ViewportMetrics
10
10
  */
11
11
 
12
- "use strict";
13
-
14
- var getUnboundedScrollPosition = require("./getUnboundedScrollPosition");
12
+ 'use strict';
15
13
 
16
14
  var ViewportMetrics = {
17
15
 
@@ -19,8 +17,7 @@ var ViewportMetrics = {
19
17
 
20
18
  currentScrollTop: 0,
21
19
 
22
- refreshScrollValues: function() {
23
- var scrollPosition = getUnboundedScrollPosition(window);
20
+ refreshScrollValues: function(scrollPosition) {
24
21
  ViewportMetrics.currentScrollLeft = scrollPosition.x;
25
22
  ViewportMetrics.currentScrollTop = scrollPosition.y;
26
23
  }
@@ -9,7 +9,7 @@
9
9
  * @providesModule accumulateInto
10
10
  */
11
11
 
12
- "use strict";
12
+ 'use strict';
13
13
 
14
14
  var invariant = require("./invariant");
15
15
 
package/lib/adler32.js CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  /* jslint bitwise:true */
13
13
 
14
- "use strict";
14
+ 'use strict';
15
15
 
16
16
  var MOD = 65521;
17
17