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.
- package/dist/react-dom-server.js +330 -434
- package/dist/react-dom-server.min.js +5 -5
- package/dist/react-dom.js +420 -535
- package/dist/react-dom.min.js +5 -5
- package/lib/ARIADOMPropertyConfig.js +0 -1
- package/lib/AutoFocusUtils.js +0 -1
- package/lib/BeforeInputEventPlugin.js +0 -1
- package/lib/CSSProperty.js +0 -1
- package/lib/CSSPropertyOperations.js +0 -1
- package/lib/CallbackQueue.js +0 -1
- package/lib/ChangeEventPlugin.js +0 -1
- package/lib/DOMChildrenOperations.js +0 -1
- package/lib/DOMLazyTree.js +0 -1
- package/lib/DOMNamespaces.js +0 -1
- package/lib/DOMProperty.js +0 -1
- package/lib/DOMPropertyOperations.js +0 -1
- package/lib/Danger.js +0 -1
- package/lib/DefaultEventPluginOrder.js +0 -1
- package/lib/EnterLeaveEventPlugin.js +0 -1
- package/lib/EventConstants.js +0 -1
- package/lib/EventPluginHub.js +0 -1
- package/lib/EventPluginRegistry.js +0 -1
- package/lib/EventPluginUtils.js +0 -1
- package/lib/EventPropagators.js +0 -1
- package/lib/FallbackCompositionState.js +0 -1
- package/lib/HTMLDOMPropertyConfig.js +0 -1
- package/lib/KeyEscapeUtils.js +0 -1
- package/lib/LinkedValueUtils.js +0 -1
- package/lib/PluginModuleType.js +0 -1
- package/lib/PooledClass.js +0 -1
- package/lib/ReactBrowserEventEmitter.js +0 -1
- package/lib/ReactChildFiber.js +7 -10
- package/lib/ReactChildReconciler.js +0 -1
- package/lib/ReactComponentBrowserEnvironment.js +0 -1
- package/lib/ReactComponentEnvironment.js +0 -1
- package/lib/ReactComponentTreeTestUtils.js +0 -1
- package/lib/ReactCompositeComponent.js +2 -3
- package/lib/ReactCoroutine.js +0 -1
- package/lib/ReactDOM.js +0 -1
- package/lib/ReactDOMComponent.js +0 -1
- package/lib/ReactDOMComponentFlags.js +0 -1
- package/lib/ReactDOMComponentTree.js +0 -1
- package/lib/ReactDOMContainerInfo.js +0 -1
- package/lib/ReactDOMEmptyComponent.js +0 -1
- package/lib/ReactDOMFeatureFlags.js +0 -1
- package/lib/ReactDOMFiber.js +0 -1
- package/lib/ReactDOMIDOperations.js +0 -1
- package/lib/ReactDOMInput.js +0 -1
- package/lib/ReactDOMInvalidARIAHook.js +0 -1
- package/lib/ReactDOMNullInputValuePropHook.js +0 -1
- package/lib/ReactDOMOption.js +0 -1
- package/lib/ReactDOMSelect.js +0 -1
- package/lib/ReactDOMSelection.js +0 -1
- package/lib/ReactDOMServer.js +0 -1
- package/lib/ReactDOMServerUMDEntry.js +0 -1
- package/lib/ReactDOMTextComponent.js +0 -1
- package/lib/ReactDOMTextarea.js +0 -1
- package/lib/ReactDOMTreeTraversal.js +0 -1
- package/lib/ReactDOMUMDEntry.js +0 -1
- package/lib/ReactDOMUnknownPropertyHook.js +0 -1
- package/lib/ReactDebugTool.js +5 -7
- package/lib/ReactDefaultBatchingStrategy.js +0 -1
- package/lib/ReactDefaultInjection.js +0 -1
- package/lib/ReactElementSymbol.js +0 -1
- package/lib/ReactEmptyComponent.js +0 -1
- package/lib/ReactErrorUtils.js +0 -1
- package/lib/ReactEventEmitterMixin.js +0 -1
- package/lib/ReactEventListener.js +0 -1
- package/lib/ReactFeatureFlags.js +0 -1
- package/lib/ReactFiber.js +9 -10
- package/lib/ReactFiberBeginWork.js +26 -32
- package/lib/ReactFiberCommitWork.js +5 -8
- package/lib/ReactFiberCompleteWork.js +13 -15
- package/lib/ReactFiberReconciler.js +5 -9
- package/lib/ReactFiberRoot.js +2 -5
- package/lib/ReactFiberScheduler.js +13 -21
- package/lib/ReactFiberUpdateQueue.js +0 -1
- package/lib/ReactHostComponent.js +0 -1
- package/lib/ReactHostOperationHistoryHook.js +0 -1
- package/lib/ReactInjection.js +0 -1
- package/lib/ReactInputSelection.js +0 -1
- package/lib/ReactInstanceMap.js +0 -1
- package/lib/ReactInstanceType.js +9 -10
- package/lib/ReactInstrumentation.js +0 -1
- package/lib/ReactInvalidSetStateWarningHook.js +0 -1
- package/lib/ReactMarkupChecksum.js +0 -1
- package/lib/ReactMount.js +0 -1
- package/lib/ReactMultiChild.js +0 -1
- package/lib/ReactMultiChildUpdateTypes.js +0 -1
- package/lib/ReactNodeTypes.js +0 -1
- package/lib/ReactOwner.js +2 -3
- package/lib/ReactPerf.js +45 -46
- package/lib/ReactPriorityLevel.js +0 -1
- package/lib/ReactPropTypeLocationNames.js +0 -1
- package/lib/ReactPropTypeLocations.js +0 -1
- package/lib/ReactPropTypesSecret.js +0 -1
- package/lib/ReactReconcileTransaction.js +0 -1
- package/lib/ReactReconciler.js +2 -3
- package/lib/ReactRef.js +5 -6
- package/lib/ReactReifiedYield.js +2 -5
- package/lib/ReactServerBatchingStrategy.js +0 -1
- package/lib/ReactServerRendering.js +0 -1
- package/lib/ReactServerRenderingTransaction.js +0 -1
- package/lib/ReactServerUpdateQueue.js +0 -1
- package/lib/ReactShallowRenderer.js +3 -5
- package/lib/ReactSimpleEmptyComponent.js +0 -1
- package/lib/ReactSyntheticEventType.js +0 -1
- package/lib/ReactTestUtils.js +2 -3
- package/lib/ReactTypeOfWork.js +0 -1
- package/lib/ReactTypes.js +0 -1
- package/lib/ReactUpdateQueue.js +0 -1
- package/lib/ReactUpdates.js +0 -1
- package/lib/ReactVersion.js +1 -2
- package/lib/ResponderEventPlugin.js +0 -1
- package/lib/ResponderSyntheticEvent.js +0 -1
- package/lib/ResponderTouchHistoryStore.js +3 -4
- package/lib/SVGDOMPropertyConfig.js +0 -1
- package/lib/SelectEventPlugin.js +0 -1
- package/lib/SimpleEventPlugin.js +0 -1
- package/lib/SyntheticAnimationEvent.js +0 -1
- package/lib/SyntheticClipboardEvent.js +0 -1
- package/lib/SyntheticCompositionEvent.js +0 -1
- package/lib/SyntheticDragEvent.js +0 -1
- package/lib/SyntheticEvent.js +0 -1
- package/lib/SyntheticFocusEvent.js +0 -1
- package/lib/SyntheticInputEvent.js +0 -1
- package/lib/SyntheticKeyboardEvent.js +0 -1
- package/lib/SyntheticMouseEvent.js +0 -1
- package/lib/SyntheticTouchEvent.js +0 -1
- package/lib/SyntheticTransitionEvent.js +0 -1
- package/lib/SyntheticUIEvent.js +0 -1
- package/lib/SyntheticWheelEvent.js +0 -1
- package/lib/TapEventPlugin.js +0 -1
- package/lib/TouchHistoryMath.js +0 -1
- package/lib/Transaction.js +0 -1
- package/lib/ViewportMetrics.js +0 -1
- package/lib/accumulate.js +0 -1
- package/lib/accumulateInto.js +0 -1
- package/lib/adler32.js +0 -1
- package/lib/canDefineProperty.js +0 -1
- package/lib/checkReactTypeSpec.js +0 -1
- package/lib/createMicrosoftUnsafeLocalFunction.js +0 -1
- package/lib/dangerousStyleValue.js +0 -1
- package/lib/deprecated.js +0 -1
- package/lib/escapeTextContentForBrowser.js +0 -1
- package/lib/findDOMNode.js +0 -1
- package/lib/flattenChildren.js +0 -1
- package/lib/forEachAccumulated.js +0 -1
- package/lib/getEventCharCode.js +0 -1
- package/lib/getEventKey.js +0 -1
- package/lib/getEventModifierState.js +0 -1
- package/lib/getEventTarget.js +0 -1
- package/lib/getHostComponentFromComposite.js +0 -1
- package/lib/getIteratorFn.js +0 -1
- package/lib/getNextDebugID.js +20 -0
- package/lib/getNodeForCharacterOffset.js +0 -1
- package/lib/getTestDocument.js +0 -1
- package/lib/getTextContentAccessor.js +0 -1
- package/lib/getVendorPrefixedEventName.js +0 -1
- package/lib/instantiateReactComponent.js +2 -4
- package/lib/isEventSupported.js +0 -1
- package/lib/isTextInputElement.js +0 -1
- package/lib/quoteAttributeValueForBrowser.js +0 -1
- package/lib/reactComponentExpect.js +0 -1
- package/lib/reactProdInvariant.js +0 -1
- package/lib/renderSubtreeIntoContainer.js +1 -2
- package/lib/setInnerHTML.js +0 -1
- package/lib/setTextContent.js +0 -1
- package/lib/shouldUpdateReactComponent.js +0 -1
- package/lib/traverseAllChildren.js +0 -1
- package/lib/validateDOMNesting.js +0 -1
- 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
|
-
|
|
91
|
+
var measurements = flush.measurements,
|
|
92
|
+
treeSnapshot = flush.treeSnapshot;
|
|
94
93
|
|
|
95
94
|
measurements.forEach(function (measurement) {
|
|
96
|
-
var duration = measurement.duration
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
131
|
-
|
|
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
|
-
|
|
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
|
-
|
|
164
|
+
var measurements = flush.measurements,
|
|
165
|
+
treeSnapshot = flush.treeSnapshot;
|
|
167
166
|
|
|
168
167
|
measurements.forEach(function (measurement) {
|
|
169
|
-
var duration = measurement.duration
|
|
170
|
-
|
|
171
|
-
|
|
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
|
-
|
|
216
|
-
|
|
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
|
-
|
|
237
|
-
|
|
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
|
-
|
|
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
|
-
|
|
269
|
-
|
|
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
|
-
|
|
321
|
+
var operations = flush.operations,
|
|
322
|
+
treeSnapshot = flush.treeSnapshot;
|
|
324
323
|
|
|
325
324
|
operations.forEach(function (operation) {
|
|
326
|
-
var instanceID = operation.instanceID
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
var _treeSnapshot$instanc3 = treeSnapshot[instanceID]
|
|
330
|
-
|
|
331
|
-
|
|
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
|
-
|
|
359
|
-
|
|
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
|
-
|
|
386
|
-
|
|
387
|
-
|
|
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
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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,
|
package/lib/ReactReconciler.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 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(
|
|
24
|
-
ReactRef.attachRefs(this, this._currentElement
|
|
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
|
|
18
|
+
function attachRef(ref, component, owner) {
|
|
20
19
|
if (typeof ref === 'function') {
|
|
21
|
-
ref(component.getPublicInstance(
|
|
20
|
+
ref(component.getPublicInstance());
|
|
22
21
|
} else {
|
|
23
22
|
// Legacy ref
|
|
24
|
-
ReactOwner.addComponentAsRefTo(component, ref, owner
|
|
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
|
|
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
|
|
42
|
+
attachRef(ref, instance, element._owner);
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
45
|
|
package/lib/ReactReifiedYield.js
CHANGED
|
@@ -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 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 =
|
|
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 =
|
|
63
|
+
this._debugID = getNextDebugID();
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
this.construct(element);
|
package/lib/ReactTestUtils.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 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 (
|
|
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(
|
|
79
|
+
return ReactDOM.render(element, div);
|
|
81
80
|
},
|
|
82
81
|
|
|
83
82
|
isElement: function (element) {
|
package/lib/ReactTypeOfWork.js
CHANGED
package/lib/ReactTypes.js
CHANGED
package/lib/ReactUpdateQueue.js
CHANGED
package/lib/ReactUpdates.js
CHANGED
package/lib/ReactVersion.js
CHANGED
|
@@ -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
|
|
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 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
|
-
|
|
24
|
-
|
|
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
|
package/lib/SelectEventPlugin.js
CHANGED
package/lib/SimpleEventPlugin.js
CHANGED
package/lib/SyntheticEvent.js
CHANGED