react-dom 15.4.0-rc.1 → 15.4.0

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 (172) hide show
  1. package/dist/react-dom-server.js +330 -434
  2. package/dist/react-dom-server.min.js +5 -5
  3. package/dist/react-dom.js +420 -535
  4. package/dist/react-dom.min.js +5 -5
  5. package/lib/ARIADOMPropertyConfig.js +0 -1
  6. package/lib/AutoFocusUtils.js +0 -1
  7. package/lib/BeforeInputEventPlugin.js +0 -1
  8. package/lib/CSSProperty.js +0 -1
  9. package/lib/CSSPropertyOperations.js +0 -1
  10. package/lib/CallbackQueue.js +0 -1
  11. package/lib/ChangeEventPlugin.js +0 -1
  12. package/lib/DOMChildrenOperations.js +0 -1
  13. package/lib/DOMLazyTree.js +0 -1
  14. package/lib/DOMNamespaces.js +0 -1
  15. package/lib/DOMProperty.js +0 -1
  16. package/lib/DOMPropertyOperations.js +0 -1
  17. package/lib/Danger.js +0 -1
  18. package/lib/DefaultEventPluginOrder.js +0 -1
  19. package/lib/EnterLeaveEventPlugin.js +0 -1
  20. package/lib/EventConstants.js +0 -1
  21. package/lib/EventPluginHub.js +0 -1
  22. package/lib/EventPluginRegistry.js +0 -1
  23. package/lib/EventPluginUtils.js +0 -1
  24. package/lib/EventPropagators.js +0 -1
  25. package/lib/FallbackCompositionState.js +0 -1
  26. package/lib/HTMLDOMPropertyConfig.js +0 -1
  27. package/lib/KeyEscapeUtils.js +0 -1
  28. package/lib/LinkedValueUtils.js +0 -1
  29. package/lib/PluginModuleType.js +0 -1
  30. package/lib/PooledClass.js +0 -1
  31. package/lib/ReactBrowserEventEmitter.js +0 -1
  32. package/lib/ReactChildFiber.js +7 -10
  33. package/lib/ReactChildReconciler.js +0 -1
  34. package/lib/ReactComponentBrowserEnvironment.js +0 -1
  35. package/lib/ReactComponentEnvironment.js +0 -1
  36. package/lib/ReactComponentTreeTestUtils.js +0 -1
  37. package/lib/ReactCompositeComponent.js +2 -3
  38. package/lib/ReactCoroutine.js +0 -1
  39. package/lib/ReactDOM.js +0 -1
  40. package/lib/ReactDOMComponent.js +0 -1
  41. package/lib/ReactDOMComponentFlags.js +0 -1
  42. package/lib/ReactDOMComponentTree.js +0 -1
  43. package/lib/ReactDOMContainerInfo.js +0 -1
  44. package/lib/ReactDOMEmptyComponent.js +0 -1
  45. package/lib/ReactDOMFeatureFlags.js +0 -1
  46. package/lib/ReactDOMFiber.js +0 -1
  47. package/lib/ReactDOMIDOperations.js +0 -1
  48. package/lib/ReactDOMInput.js +0 -1
  49. package/lib/ReactDOMInvalidARIAHook.js +0 -1
  50. package/lib/ReactDOMNullInputValuePropHook.js +0 -1
  51. package/lib/ReactDOMOption.js +0 -1
  52. package/lib/ReactDOMSelect.js +0 -1
  53. package/lib/ReactDOMSelection.js +0 -1
  54. package/lib/ReactDOMServer.js +0 -1
  55. package/lib/ReactDOMServerUMDEntry.js +0 -1
  56. package/lib/ReactDOMTextComponent.js +0 -1
  57. package/lib/ReactDOMTextarea.js +0 -1
  58. package/lib/ReactDOMTreeTraversal.js +0 -1
  59. package/lib/ReactDOMUMDEntry.js +0 -1
  60. package/lib/ReactDOMUnknownPropertyHook.js +0 -1
  61. package/lib/ReactDebugTool.js +5 -7
  62. package/lib/ReactDefaultBatchingStrategy.js +0 -1
  63. package/lib/ReactDefaultInjection.js +0 -1
  64. package/lib/ReactElementSymbol.js +0 -1
  65. package/lib/ReactEmptyComponent.js +0 -1
  66. package/lib/ReactErrorUtils.js +0 -1
  67. package/lib/ReactEventEmitterMixin.js +0 -1
  68. package/lib/ReactEventListener.js +0 -1
  69. package/lib/ReactFeatureFlags.js +0 -1
  70. package/lib/ReactFiber.js +9 -10
  71. package/lib/ReactFiberBeginWork.js +26 -32
  72. package/lib/ReactFiberCommitWork.js +5 -8
  73. package/lib/ReactFiberCompleteWork.js +13 -15
  74. package/lib/ReactFiberReconciler.js +5 -9
  75. package/lib/ReactFiberRoot.js +2 -5
  76. package/lib/ReactFiberScheduler.js +13 -21
  77. package/lib/ReactFiberUpdateQueue.js +0 -1
  78. package/lib/ReactHostComponent.js +0 -1
  79. package/lib/ReactHostOperationHistoryHook.js +0 -1
  80. package/lib/ReactInjection.js +0 -1
  81. package/lib/ReactInputSelection.js +0 -1
  82. package/lib/ReactInstanceMap.js +0 -1
  83. package/lib/ReactInstanceType.js +9 -10
  84. package/lib/ReactInstrumentation.js +0 -1
  85. package/lib/ReactInvalidSetStateWarningHook.js +0 -1
  86. package/lib/ReactMarkupChecksum.js +0 -1
  87. package/lib/ReactMount.js +0 -1
  88. package/lib/ReactMultiChild.js +0 -1
  89. package/lib/ReactMultiChildUpdateTypes.js +0 -1
  90. package/lib/ReactNodeTypes.js +0 -1
  91. package/lib/ReactOwner.js +2 -3
  92. package/lib/ReactPerf.js +45 -46
  93. package/lib/ReactPriorityLevel.js +0 -1
  94. package/lib/ReactPropTypeLocationNames.js +0 -1
  95. package/lib/ReactPropTypeLocations.js +0 -1
  96. package/lib/ReactPropTypesSecret.js +0 -1
  97. package/lib/ReactReconcileTransaction.js +0 -1
  98. package/lib/ReactReconciler.js +2 -3
  99. package/lib/ReactRef.js +5 -6
  100. package/lib/ReactReifiedYield.js +2 -5
  101. package/lib/ReactServerBatchingStrategy.js +0 -1
  102. package/lib/ReactServerRendering.js +0 -1
  103. package/lib/ReactServerRenderingTransaction.js +0 -1
  104. package/lib/ReactServerUpdateQueue.js +0 -1
  105. package/lib/ReactShallowRenderer.js +3 -5
  106. package/lib/ReactSimpleEmptyComponent.js +0 -1
  107. package/lib/ReactSyntheticEventType.js +0 -1
  108. package/lib/ReactTestUtils.js +2 -3
  109. package/lib/ReactTypeOfWork.js +0 -1
  110. package/lib/ReactTypes.js +0 -1
  111. package/lib/ReactUpdateQueue.js +0 -1
  112. package/lib/ReactUpdates.js +0 -1
  113. package/lib/ReactVersion.js +1 -2
  114. package/lib/ResponderEventPlugin.js +0 -1
  115. package/lib/ResponderSyntheticEvent.js +0 -1
  116. package/lib/ResponderTouchHistoryStore.js +3 -4
  117. package/lib/SVGDOMPropertyConfig.js +0 -1
  118. package/lib/SelectEventPlugin.js +0 -1
  119. package/lib/SimpleEventPlugin.js +0 -1
  120. package/lib/SyntheticAnimationEvent.js +0 -1
  121. package/lib/SyntheticClipboardEvent.js +0 -1
  122. package/lib/SyntheticCompositionEvent.js +0 -1
  123. package/lib/SyntheticDragEvent.js +0 -1
  124. package/lib/SyntheticEvent.js +0 -1
  125. package/lib/SyntheticFocusEvent.js +0 -1
  126. package/lib/SyntheticInputEvent.js +0 -1
  127. package/lib/SyntheticKeyboardEvent.js +0 -1
  128. package/lib/SyntheticMouseEvent.js +0 -1
  129. package/lib/SyntheticTouchEvent.js +0 -1
  130. package/lib/SyntheticTransitionEvent.js +0 -1
  131. package/lib/SyntheticUIEvent.js +0 -1
  132. package/lib/SyntheticWheelEvent.js +0 -1
  133. package/lib/TapEventPlugin.js +0 -1
  134. package/lib/TouchHistoryMath.js +0 -1
  135. package/lib/Transaction.js +0 -1
  136. package/lib/ViewportMetrics.js +0 -1
  137. package/lib/accumulate.js +0 -1
  138. package/lib/accumulateInto.js +0 -1
  139. package/lib/adler32.js +0 -1
  140. package/lib/canDefineProperty.js +0 -1
  141. package/lib/checkReactTypeSpec.js +0 -1
  142. package/lib/createMicrosoftUnsafeLocalFunction.js +0 -1
  143. package/lib/dangerousStyleValue.js +0 -1
  144. package/lib/deprecated.js +0 -1
  145. package/lib/escapeTextContentForBrowser.js +0 -1
  146. package/lib/findDOMNode.js +0 -1
  147. package/lib/flattenChildren.js +0 -1
  148. package/lib/forEachAccumulated.js +0 -1
  149. package/lib/getEventCharCode.js +0 -1
  150. package/lib/getEventKey.js +0 -1
  151. package/lib/getEventModifierState.js +0 -1
  152. package/lib/getEventTarget.js +0 -1
  153. package/lib/getHostComponentFromComposite.js +0 -1
  154. package/lib/getIteratorFn.js +0 -1
  155. package/lib/getNextDebugID.js +20 -0
  156. package/lib/getNodeForCharacterOffset.js +0 -1
  157. package/lib/getTestDocument.js +0 -1
  158. package/lib/getTextContentAccessor.js +0 -1
  159. package/lib/getVendorPrefixedEventName.js +0 -1
  160. package/lib/instantiateReactComponent.js +2 -4
  161. package/lib/isEventSupported.js +0 -1
  162. package/lib/isTextInputElement.js +0 -1
  163. package/lib/quoteAttributeValueForBrowser.js +0 -1
  164. package/lib/reactComponentExpect.js +0 -1
  165. package/lib/reactProdInvariant.js +0 -1
  166. package/lib/renderSubtreeIntoContainer.js +1 -2
  167. package/lib/setInnerHTML.js +0 -1
  168. package/lib/setTextContent.js +0 -1
  169. package/lib/shouldUpdateReactComponent.js +0 -1
  170. package/lib/traverseAllChildren.js +0 -1
  171. package/lib/validateDOMNesting.js +0 -1
  172. package/package.json +2 -2
package/lib/ReactPerf.js CHANGED
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactPerf
10
9
  *
11
10
  */
12
11
 
@@ -89,13 +88,13 @@ function getExclusive() {
89
88
  }
90
89
 
91
90
  flushHistory.forEach(function (flush) {
92
- var measurements = flush.measurements;
93
- var treeSnapshot = flush.treeSnapshot;
91
+ var measurements = flush.measurements,
92
+ treeSnapshot = flush.treeSnapshot;
94
93
 
95
94
  measurements.forEach(function (measurement) {
96
- var duration = measurement.duration;
97
- var instanceID = measurement.instanceID;
98
- var timerType = measurement.timerType;
95
+ var duration = measurement.duration,
96
+ instanceID = measurement.instanceID,
97
+ timerType = measurement.timerType;
99
98
 
100
99
  updateAggregatedStats(treeSnapshot, instanceID, timerType, function (stats) {
101
100
  stats.totalDuration += duration;
@@ -126,9 +125,9 @@ function getInclusive() {
126
125
  var affectedIDs = {};
127
126
 
128
127
  function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) {
129
- var _treeSnapshot$instanc = treeSnapshot[instanceID];
130
- var displayName = _treeSnapshot$instanc.displayName;
131
- var ownerID = _treeSnapshot$instanc.ownerID;
128
+ var _treeSnapshot$instanc = treeSnapshot[instanceID],
129
+ displayName = _treeSnapshot$instanc.displayName,
130
+ ownerID = _treeSnapshot$instanc.ownerID;
132
131
 
133
132
  var owner = treeSnapshot[ownerID];
134
133
  var key = (owner ? owner.displayName + ' > ' : '') + displayName;
@@ -151,8 +150,8 @@ function getInclusive() {
151
150
  var measurements = flush.measurements;
152
151
 
153
152
  measurements.forEach(function (measurement) {
154
- var instanceID = measurement.instanceID;
155
- var timerType = measurement.timerType;
153
+ var instanceID = measurement.instanceID,
154
+ timerType = measurement.timerType;
156
155
 
157
156
  if (timerType !== 'render') {
158
157
  return;
@@ -162,13 +161,13 @@ function getInclusive() {
162
161
  });
163
162
 
164
163
  flushHistory.forEach(function (flush) {
165
- var measurements = flush.measurements;
166
- var treeSnapshot = flush.treeSnapshot;
164
+ var measurements = flush.measurements,
165
+ treeSnapshot = flush.treeSnapshot;
167
166
 
168
167
  measurements.forEach(function (measurement) {
169
- var duration = measurement.duration;
170
- var instanceID = measurement.instanceID;
171
- var timerType = measurement.timerType;
168
+ var duration = measurement.duration,
169
+ instanceID = measurement.instanceID,
170
+ timerType = measurement.timerType;
172
171
 
173
172
  if (timerType !== 'render') {
174
173
  return;
@@ -211,9 +210,9 @@ function getWasted() {
211
210
  var affectedIDs = {};
212
211
 
213
212
  function updateAggregatedStats(treeSnapshot, instanceID, applyUpdate) {
214
- var _treeSnapshot$instanc2 = treeSnapshot[instanceID];
215
- var displayName = _treeSnapshot$instanc2.displayName;
216
- var ownerID = _treeSnapshot$instanc2.ownerID;
213
+ var _treeSnapshot$instanc2 = treeSnapshot[instanceID],
214
+ displayName = _treeSnapshot$instanc2.displayName,
215
+ ownerID = _treeSnapshot$instanc2.ownerID;
217
216
 
218
217
  var owner = treeSnapshot[ownerID];
219
218
  var key = (owner ? owner.displayName + ' > ' : '') + displayName;
@@ -232,9 +231,9 @@ function getWasted() {
232
231
  }
233
232
 
234
233
  flushHistory.forEach(function (flush) {
235
- var measurements = flush.measurements;
236
- var treeSnapshot = flush.treeSnapshot;
237
- var operations = flush.operations;
234
+ var measurements = flush.measurements,
235
+ treeSnapshot = flush.treeSnapshot,
236
+ operations = flush.operations;
238
237
 
239
238
  var isDefinitelyNotWastedByID = {};
240
239
 
@@ -254,8 +253,8 @@ function getWasted() {
254
253
  // These are potential candidates for being wasted renders.
255
254
  var renderedCompositeIDs = {};
256
255
  measurements.forEach(function (measurement) {
257
- var instanceID = measurement.instanceID;
258
- var timerType = measurement.timerType;
256
+ var instanceID = measurement.instanceID,
257
+ timerType = measurement.timerType;
259
258
 
260
259
  if (timerType !== 'render') {
261
260
  return;
@@ -264,9 +263,9 @@ function getWasted() {
264
263
  });
265
264
 
266
265
  measurements.forEach(function (measurement) {
267
- var duration = measurement.duration;
268
- var instanceID = measurement.instanceID;
269
- var timerType = measurement.timerType;
266
+ var duration = measurement.duration,
267
+ instanceID = measurement.instanceID,
268
+ timerType = measurement.timerType;
270
269
 
271
270
  if (timerType !== 'render') {
272
271
  return;
@@ -319,16 +318,16 @@ function getOperations() {
319
318
 
320
319
  var stats = [];
321
320
  flushHistory.forEach(function (flush, flushIndex) {
322
- var operations = flush.operations;
323
- var treeSnapshot = flush.treeSnapshot;
321
+ var operations = flush.operations,
322
+ treeSnapshot = flush.treeSnapshot;
324
323
 
325
324
  operations.forEach(function (operation) {
326
- var instanceID = operation.instanceID;
327
- var type = operation.type;
328
- var payload = operation.payload;
329
- var _treeSnapshot$instanc3 = treeSnapshot[instanceID];
330
- var displayName = _treeSnapshot$instanc3.displayName;
331
- var ownerID = _treeSnapshot$instanc3.ownerID;
325
+ var instanceID = operation.instanceID,
326
+ type = operation.type,
327
+ payload = operation.payload;
328
+ var _treeSnapshot$instanc3 = treeSnapshot[instanceID],
329
+ displayName = _treeSnapshot$instanc3.displayName,
330
+ ownerID = _treeSnapshot$instanc3.ownerID;
332
331
 
333
332
  var owner = treeSnapshot[ownerID];
334
333
  var key = (owner ? owner.displayName + ' > ' : '') + displayName;
@@ -354,9 +353,9 @@ function printExclusive(flushHistory) {
354
353
 
355
354
  var stats = getExclusive(flushHistory);
356
355
  var table = stats.map(function (item) {
357
- var key = item.key;
358
- var instanceCount = item.instanceCount;
359
- var totalDuration = item.totalDuration;
356
+ var key = item.key,
357
+ instanceCount = item.instanceCount,
358
+ totalDuration = item.totalDuration;
360
359
 
361
360
  var renderCount = item.counts.render || 0;
362
361
  var renderDuration = item.durations.render || 0;
@@ -381,10 +380,10 @@ function printInclusive(flushHistory) {
381
380
 
382
381
  var stats = getInclusive(flushHistory);
383
382
  var table = stats.map(function (item) {
384
- var key = item.key;
385
- var instanceCount = item.instanceCount;
386
- var inclusiveRenderDuration = item.inclusiveRenderDuration;
387
- var renderCount = item.renderCount;
383
+ var key = item.key,
384
+ instanceCount = item.instanceCount,
385
+ inclusiveRenderDuration = item.inclusiveRenderDuration,
386
+ renderCount = item.renderCount;
388
387
 
389
388
  return {
390
389
  'Owner > Component': key,
@@ -404,10 +403,10 @@ function printWasted(flushHistory) {
404
403
 
405
404
  var stats = getWasted(flushHistory);
406
405
  var table = stats.map(function (item) {
407
- var key = item.key;
408
- var instanceCount = item.instanceCount;
409
- var inclusiveRenderDuration = item.inclusiveRenderDuration;
410
- var renderCount = item.renderCount;
406
+ var key = item.key,
407
+ instanceCount = item.instanceCount,
408
+ inclusiveRenderDuration = item.inclusiveRenderDuration,
409
+ renderCount = item.renderCount;
411
410
 
412
411
  return {
413
412
  'Owner > Component': key,
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactPriorityLevel
10
9
  *
11
10
  */
12
11
 
@@ -7,7 +7,6 @@
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
9
  *
10
- * @providesModule ReactPropTypeLocationNames
11
10
  */
12
11
 
13
12
  'use strict';
@@ -7,7 +7,6 @@
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
9
  *
10
- * @providesModule ReactPropTypeLocations
11
10
  */
12
11
 
13
12
  'use strict';
@@ -7,7 +7,6 @@
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
9
  *
10
- * @providesModule ReactPropTypesSecret
11
10
  */
12
11
 
13
12
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactReconcileTransaction
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactReconciler
10
9
  */
11
10
 
12
11
  'use strict';
@@ -20,8 +19,8 @@ var warning = require('fbjs/lib/warning');
20
19
  * Helper to call ReactRef.attachRefs with this composite component, split out
21
20
  * to avoid allocations in the transaction mount-ready queue.
22
21
  */
23
- function attachRefs(transaction) {
24
- ReactRef.attachRefs(this, this._currentElement, transaction);
22
+ function attachRefs() {
23
+ ReactRef.attachRefs(this, this._currentElement);
25
24
  }
26
25
 
27
26
  var ReactReconciler = {
package/lib/ReactRef.js CHANGED
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactRef
10
9
  *
11
10
  */
12
11
 
@@ -16,12 +15,12 @@ var ReactOwner = require('./ReactOwner');
16
15
 
17
16
  var ReactRef = {};
18
17
 
19
- function attachRef(ref, component, owner, transaction) {
18
+ function attachRef(ref, component, owner) {
20
19
  if (typeof ref === 'function') {
21
- ref(component.getPublicInstance(transaction));
20
+ ref(component.getPublicInstance());
22
21
  } else {
23
22
  // Legacy ref
24
- ReactOwner.addComponentAsRefTo(component, ref, owner, transaction);
23
+ ReactOwner.addComponentAsRefTo(component, ref, owner);
25
24
  }
26
25
  }
27
26
 
@@ -34,13 +33,13 @@ function detachRef(ref, component, owner) {
34
33
  }
35
34
  }
36
35
 
37
- ReactRef.attachRefs = function (instance, element, transaction) {
36
+ ReactRef.attachRefs = function (instance, element) {
38
37
  if (element === null || typeof element !== 'object') {
39
38
  return;
40
39
  }
41
40
  var ref = element.ref;
42
41
  if (ref != null) {
43
- attachRef(ref, instance, element._owner, transaction);
42
+ attachRef(ref, instance, element._owner);
44
43
  }
45
44
  };
46
45
 
@@ -6,16 +6,13 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactReifiedYield
10
9
  *
11
10
  */
12
11
 
13
12
  'use strict';
14
13
 
15
- var _require = require('./ReactFiber');
16
-
17
- var createFiberFromElementType = _require.createFiberFromElementType;
18
-
14
+ var _require = require('./ReactFiber'),
15
+ createFiberFromElementType = _require.createFiberFromElementType;
19
16
 
20
17
  exports.createReifiedYield = function (yieldNode) {
21
18
  var fiber = createFiberFromElementType(yieldNode.continuation, yieldNode.key);
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactServerBatchingStrategy
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactServerRendering
10
9
  */
11
10
  'use strict';
12
11
 
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactServerRenderingTransaction
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactServerUpdateQueue
10
9
  *
11
10
  */
12
11
 
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactShallowRenderer
10
9
  */
11
10
 
12
11
  'use strict';
@@ -23,10 +22,9 @@ var ReactReconciler = require('./ReactReconciler');
23
22
  var ReactUpdates = require('./ReactUpdates');
24
23
 
25
24
  var emptyObject = require('fbjs/lib/emptyObject');
25
+ var getNextDebugID = require('./getNextDebugID');
26
26
  var invariant = require('fbjs/lib/invariant');
27
27
 
28
- var nextDebugID = 1;
29
-
30
28
  var NoopInternalComponent = function () {
31
29
  function NoopInternalComponent(element) {
32
30
  _classCallCheck(this, NoopInternalComponent);
@@ -35,7 +33,7 @@ var NoopInternalComponent = function () {
35
33
  this._currentElement = element;
36
34
 
37
35
  if (process.env.NODE_ENV !== 'production') {
38
- this._debugID = nextDebugID++;
36
+ this._debugID = getNextDebugID();
39
37
  }
40
38
  }
41
39
 
@@ -62,7 +60,7 @@ var NoopInternalComponent = function () {
62
60
  var ShallowComponentWrapper = function (element) {
63
61
  // TODO: Consolidate with instantiateReactComponent
64
62
  if (process.env.NODE_ENV !== 'production') {
65
- this._debugID = nextDebugID++;
63
+ this._debugID = getNextDebugID();
66
64
  }
67
65
 
68
66
  this.construct(element);
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactSimpleEmptyComponent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -8,7 +8,6 @@
8
8
  *
9
9
  * Flow type for SyntheticEvent class that includes private properties
10
10
  *
11
- * @providesModule ReactSyntheticEventType
12
11
  *
13
12
  */
14
13
 
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactTestUtils
10
9
  */
11
10
 
12
11
  'use strict';
@@ -70,14 +69,14 @@ function findAllInRenderedTreeInternal(inst, test) {
70
69
  * @lends ReactTestUtils
71
70
  */
72
71
  var ReactTestUtils = {
73
- renderIntoDocument: function (instance) {
72
+ renderIntoDocument: function (element) {
74
73
  var div = document.createElement('div');
75
74
  // None of our tests actually require attaching the container to the
76
75
  // DOM, and doing so creates a mess that we rely on test isolation to
77
76
  // clean up, so we're going to stop honoring the name of this method
78
77
  // (and probably rename it eventually) if no problems arise.
79
78
  // document.documentElement.appendChild(div);
80
- return ReactDOM.render(instance, div);
79
+ return ReactDOM.render(element, div);
81
80
  },
82
81
 
83
82
  isElement: function (element) {
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactTypeOfWork
10
9
  *
11
10
  */
12
11
 
package/lib/ReactTypes.js CHANGED
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactTypes
10
9
  *
11
10
  */
12
11
 
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactUpdateQueue
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactUpdates
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,9 +6,8 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ReactVersion
10
9
  */
11
10
 
12
11
  'use strict';
13
12
 
14
- module.exports = '15.4.0-rc.1';
13
+ module.exports = '15.4.0';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ResponderEventPlugin
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ResponderSyntheticEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule ResponderTouchHistoryStore
10
9
  *
11
10
  */
12
11
 
@@ -19,9 +18,9 @@ var EventPluginUtils = require('./EventPluginUtils');
19
18
  var invariant = require('fbjs/lib/invariant');
20
19
  var warning = require('fbjs/lib/warning');
21
20
 
22
- var isEndish = EventPluginUtils.isEndish;
23
- var isMoveish = EventPluginUtils.isMoveish;
24
- var isStartish = EventPluginUtils.isStartish;
21
+ var isEndish = EventPluginUtils.isEndish,
22
+ isMoveish = EventPluginUtils.isMoveish,
23
+ isStartish = EventPluginUtils.isStartish;
25
24
 
26
25
  /**
27
26
  * Tracks the position and time of each active touch by `touch.identifier`. We
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SVGDOMPropertyConfig
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SelectEventPlugin
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SimpleEventPlugin
10
9
  *
11
10
  */
12
11
 
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticAnimationEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticClipboardEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticCompositionEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticDragEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticFocusEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticInputEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticKeyboardEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticMouseEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticTouchEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticTransitionEvent
10
9
  */
11
10
 
12
11
  'use strict';
@@ -6,7 +6,6 @@
6
6
  * LICENSE file in the root directory of this source tree. An additional grant
7
7
  * of patent rights can be found in the PATENTS file in the same directory.
8
8
  *
9
- * @providesModule SyntheticUIEvent
10
9
  */
11
10
 
12
11
  'use strict';