react 0.14.5 → 0.14.9
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-with-addons.js +38 -18
- package/dist/react-with-addons.min.js +6 -6
- package/dist/react.js +32 -16
- package/dist/react.min.js +6 -6
- package/lib/LinkedValueUtils.js +1 -1
- package/lib/ReactCompositeComponent.js +1 -1
- package/lib/ReactDOMOption.js +4 -1
- package/lib/ReactElementValidator.js +1 -1
- package/lib/ReactEmptyComponent.js +5 -1
- package/lib/ReactPropTypes.js +4 -4
- package/lib/ReactTestUtils.js +6 -2
- package/lib/ReactVersion.js +1 -1
- package/lib/SyntheticEvent.js +6 -3
- package/package.json +3 -3
package/lib/ReactTestUtils.js
CHANGED
|
@@ -340,10 +340,14 @@ ReactShallowRenderer.prototype.render = function (element, context) {
|
|
|
340
340
|
if (!context) {
|
|
341
341
|
context = emptyObject;
|
|
342
342
|
}
|
|
343
|
+
ReactUpdates.batchedUpdates(_batchedRender, this, element, context);
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
function _batchedRender(renderer, element, context) {
|
|
343
347
|
var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(false);
|
|
344
|
-
|
|
348
|
+
renderer._render(element, transaction, context);
|
|
345
349
|
ReactUpdates.ReactReconcileTransaction.release(transaction);
|
|
346
|
-
}
|
|
350
|
+
}
|
|
347
351
|
|
|
348
352
|
ReactShallowRenderer.prototype.unmount = function () {
|
|
349
353
|
if (this._instance) {
|
package/lib/ReactVersion.js
CHANGED
package/lib/SyntheticEvent.js
CHANGED
|
@@ -24,6 +24,7 @@ var warning = require('fbjs/lib/warning');
|
|
|
24
24
|
*/
|
|
25
25
|
var EventInterface = {
|
|
26
26
|
type: null,
|
|
27
|
+
target: null,
|
|
27
28
|
// currentTarget is set when dispatching; no use in copying it here
|
|
28
29
|
currentTarget: emptyFunction.thatReturnsNull,
|
|
29
30
|
eventPhase: null,
|
|
@@ -57,8 +58,6 @@ function SyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEvent
|
|
|
57
58
|
this.dispatchConfig = dispatchConfig;
|
|
58
59
|
this.dispatchMarker = dispatchMarker;
|
|
59
60
|
this.nativeEvent = nativeEvent;
|
|
60
|
-
this.target = nativeEventTarget;
|
|
61
|
-
this.currentTarget = nativeEventTarget;
|
|
62
61
|
|
|
63
62
|
var Interface = this.constructor.Interface;
|
|
64
63
|
for (var propName in Interface) {
|
|
@@ -69,7 +68,11 @@ function SyntheticEvent(dispatchConfig, dispatchMarker, nativeEvent, nativeEvent
|
|
|
69
68
|
if (normalize) {
|
|
70
69
|
this[propName] = normalize(nativeEvent);
|
|
71
70
|
} else {
|
|
72
|
-
|
|
71
|
+
if (propName === 'target') {
|
|
72
|
+
this.target = nativeEventTarget;
|
|
73
|
+
} else {
|
|
74
|
+
this[propName] = nativeEvent[propName];
|
|
75
|
+
}
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react",
|
|
3
3
|
"description": "React is a JavaScript library for building user interfaces.",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.
|
|
8
|
+
"homepage": "https://facebook.github.io/react/",
|
|
9
9
|
"bugs": "https://github.com/facebook/react/issues",
|
|
10
10
|
"license": "BSD-3-Clause",
|
|
11
11
|
"files": [
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"envify": "^3.0.0",
|
|
27
|
-
"fbjs": "^0.6.
|
|
27
|
+
"fbjs": "^0.6.1"
|
|
28
28
|
},
|
|
29
29
|
"browserify": {
|
|
30
30
|
"transform": [
|