react 0.13.0-beta.1 → 0.13.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/JSXTransformer.js +1919 -1295
- package/dist/react-with-addons.js +1690 -1090
- package/dist/react-with-addons.min.js +7 -6
- package/dist/react.js +1574 -1010
- package/dist/react.min.js +6 -6
- package/lib/AutoFocusMixin.js +1 -1
- package/lib/BeforeInputEventPlugin.js +1 -5
- package/lib/CSSCore.js +1 -1
- package/lib/CSSProperty.js +3 -1
- package/lib/CSSPropertyOperations.js +1 -1
- package/lib/CallbackQueue.js +1 -1
- package/lib/ChangeEventPlugin.js +1 -1
- package/lib/ClientReactRootIndex.js +1 -1
- package/lib/DOMChildrenOperations.js +4 -43
- package/lib/DOMProperty.js +1 -1
- package/lib/DOMPropertyOperations.js +7 -14
- package/lib/Danger.js +1 -1
- package/lib/DefaultEventPluginOrder.js +2 -2
- package/lib/EnterLeaveEventPlugin.js +1 -1
- package/lib/EventConstants.js +1 -1
- package/lib/EventListener.js +1 -1
- package/lib/EventPluginHub.js +1 -1
- package/lib/EventPluginRegistry.js +1 -1
- package/lib/EventPluginUtils.js +3 -3
- package/lib/EventPropagators.js +1 -1
- package/lib/ExecutionEnvironment.js +1 -1
- package/lib/FallbackCompositionState.js +1 -1
- package/lib/HTMLDOMPropertyConfig.js +12 -5
- package/lib/LinkedStateMixin.js +1 -1
- package/lib/LinkedValueUtils.js +1 -1
- package/lib/LocalEventTrapMixin.js +1 -1
- package/lib/MobileSafariClickEventPlugin.js +1 -1
- package/lib/Object.assign.js +1 -1
- package/lib/PooledClass.js +1 -1
- package/lib/React.js +7 -9
- package/lib/ReactBrowserComponentMixin.js +1 -1
- package/lib/ReactBrowserEventEmitter.js +2 -2
- package/lib/ReactCSSTransitionGroup.js +1 -1
- package/lib/ReactCSSTransitionGroupChild.js +8 -5
- package/lib/ReactChildReconciler.js +1 -1
- package/lib/ReactChildren.js +3 -2
- package/lib/ReactClass.js +49 -23
- package/lib/ReactComponent.js +35 -19
- package/lib/ReactComponentBrowserEnvironment.js +1 -1
- package/lib/ReactComponentEnvironment.js +1 -1
- package/lib/ReactComponentWithPureRenderMixin.js +1 -1
- package/lib/ReactCompositeComponent.js +89 -40
- package/lib/ReactContext.js +13 -3
- package/lib/ReactCurrentOwner.js +1 -1
- package/lib/ReactDOM.js +1 -1
- package/lib/ReactDOMButton.js +1 -1
- package/lib/ReactDOMComponent.js +19 -19
- package/lib/ReactDOMForm.js +1 -1
- package/lib/ReactDOMIDOperations.js +3 -3
- package/lib/ReactDOMIframe.js +43 -0
- package/lib/ReactDOMImg.js +1 -1
- package/lib/ReactDOMInput.js +1 -1
- package/lib/ReactDOMOption.js +1 -1
- package/lib/ReactDOMSelect.js +1 -1
- package/lib/ReactDOMSelection.js +1 -1
- package/lib/ReactDOMTextComponent.js +3 -5
- package/lib/ReactDOMTextarea.js +1 -1
- package/lib/ReactDefaultBatchingStrategy.js +1 -1
- package/lib/ReactDefaultInjection.js +25 -1
- package/lib/ReactDefaultPerf.js +5 -10
- package/lib/ReactDefaultPerfAnalysis.js +1 -1
- package/lib/ReactElement.js +56 -2
- package/lib/ReactElementValidator.js +122 -79
- package/lib/ReactEmptyComponent.js +5 -5
- package/lib/ReactErrorUtils.js +1 -1
- package/lib/ReactEventEmitterMixin.js +1 -1
- package/lib/ReactEventListener.js +1 -1
- package/lib/ReactFragment.js +181 -0
- package/lib/ReactInjection.js +1 -1
- package/lib/ReactInputSelection.js +1 -1
- package/lib/ReactInstanceHandles.js +1 -1
- package/lib/ReactInstanceMap.js +1 -1
- package/lib/ReactLifeCycle.js +1 -1
- package/lib/ReactLink.js +1 -1
- package/lib/ReactMarkupChecksum.js +1 -1
- package/lib/ReactMount.js +32 -10
- package/lib/ReactMultiChild.js +1 -1
- package/lib/ReactMultiChildUpdateTypes.js +1 -1
- package/lib/ReactNativeComponent.js +7 -20
- package/lib/ReactOwner.js +1 -1
- package/lib/ReactPerf.js +1 -1
- package/lib/ReactPropTransferer.js +1 -1
- package/lib/ReactPropTypeLocationNames.js +1 -1
- package/lib/ReactPropTypeLocations.js +1 -1
- package/lib/ReactPropTypes.js +7 -4
- package/lib/ReactPutListenerQueue.js +1 -1
- package/lib/ReactReconcileTransaction.js +1 -1
- package/lib/ReactReconciler.js +15 -2
- package/lib/ReactRef.js +2 -3
- package/lib/ReactRootIndex.js +1 -1
- package/lib/ReactServerRendering.js +1 -1
- package/lib/ReactServerRenderingTransaction.js +1 -1
- package/lib/ReactStateSetters.js +1 -1
- package/lib/ReactTestUtils.js +19 -7
- package/lib/ReactTransitionChildMapping.js +7 -3
- package/lib/ReactTransitionEvents.js +1 -1
- package/lib/ReactTransitionGroup.js +5 -5
- package/lib/ReactUpdateQueue.js +63 -32
- package/lib/ReactUpdates.js +7 -2
- package/lib/ReactWithAddons.js +3 -1
- package/lib/SVGDOMPropertyConfig.js +1 -1
- package/lib/SelectEventPlugin.js +1 -1
- package/lib/ServerReactRootIndex.js +1 -1
- package/lib/SimpleEventPlugin.js +3 -3
- package/lib/SyntheticClipboardEvent.js +1 -1
- package/lib/SyntheticCompositionEvent.js +1 -1
- package/lib/SyntheticDragEvent.js +1 -1
- package/lib/SyntheticEvent.js +1 -1
- package/lib/SyntheticFocusEvent.js +1 -1
- package/lib/SyntheticInputEvent.js +1 -1
- package/lib/SyntheticKeyboardEvent.js +1 -1
- package/lib/SyntheticMouseEvent.js +1 -1
- package/lib/SyntheticTouchEvent.js +1 -1
- package/lib/SyntheticUIEvent.js +1 -1
- package/lib/SyntheticWheelEvent.js +1 -1
- package/lib/Transaction.js +2 -2
- package/lib/ViewportMetrics.js +1 -1
- package/lib/accumulateInto.js +1 -1
- package/lib/adler32.js +1 -1
- package/lib/camelize.js +1 -1
- package/lib/camelizeStyleName.js +1 -1
- package/lib/cloneWithProps.js +4 -4
- package/lib/containsNode.js +1 -1
- package/lib/{createArrayFrom.js → createArrayFromMixed.js} +6 -6
- package/lib/createFullPageComponent.js +1 -1
- package/lib/createNodesFromMarkup.js +4 -4
- package/lib/cx.js +16 -1
- package/lib/dangerousStyleValue.js +1 -1
- package/lib/emptyFunction.js +1 -1
- package/lib/emptyObject.js +1 -1
- package/lib/{escapeTextForBrowser.js → escapeTextContentForBrowser.js} +4 -5
- package/lib/findDOMNode.js +19 -1
- package/lib/flattenChildren.js +1 -1
- package/lib/focusNode.js +1 -1
- package/lib/forEachAccumulated.js +1 -1
- package/lib/getActiveElement.js +1 -1
- package/lib/getEventCharCode.js +1 -1
- package/lib/getEventKey.js +1 -1
- package/lib/getEventModifierState.js +1 -1
- package/lib/getEventTarget.js +1 -1
- package/lib/getIteratorFn.js +1 -1
- package/lib/getMarkupWrap.js +1 -1
- package/lib/getNodeForCharacterOffset.js +1 -1
- package/lib/getReactRootElementInContainer.js +1 -1
- package/lib/getTextContentAccessor.js +1 -1
- package/lib/getUnboundedScrollPosition.js +1 -1
- package/lib/hyphenate.js +1 -1
- package/lib/hyphenateStyleName.js +1 -1
- package/lib/instantiateReactComponent.js +6 -1
- package/lib/invariant.js +1 -1
- package/lib/isEventSupported.js +1 -1
- package/lib/isNode.js +1 -1
- package/lib/isTextInputElement.js +1 -1
- package/lib/isTextNode.js +1 -1
- package/lib/joinClasses.js +1 -1
- package/lib/keyMirror.js +1 -1
- package/lib/keyOf.js +1 -1
- package/lib/mapObject.js +1 -1
- package/lib/memoizeStringOnly.js +1 -1
- package/lib/onlyChild.js +1 -1
- package/lib/performance.js +1 -1
- package/lib/performanceNow.js +1 -1
- package/lib/quoteAttributeValueForBrowser.js +26 -0
- package/lib/setInnerHTML.js +1 -1
- package/lib/setTextContent.js +40 -0
- package/lib/shallowEqual.js +1 -1
- package/lib/shouldUpdateReactComponent.js +32 -10
- package/lib/toArray.js +2 -2
- package/lib/traverseAllChildren.js +18 -4
- package/lib/update.js +1 -1
- package/lib/warning.js +9 -2
- package/package.json +1 -1
- package/lib/copyProperties.js +0 -56
- package/lib/merge.js +0 -34
- package/lib/mergeInto.js +0 -24
- package/lib/monitorCodeUse.js +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-
|
|
2
|
+
* Copyright 2013-2015, Facebook, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
'use strict';
|
|
14
14
|
|
|
15
15
|
var ReactChildren = require("./ReactChildren");
|
|
16
|
+
var ReactFragment = require("./ReactFragment");
|
|
16
17
|
|
|
17
18
|
var ReactTransitionChildMapping = {
|
|
18
19
|
/**
|
|
@@ -23,9 +24,12 @@ var ReactTransitionChildMapping = {
|
|
|
23
24
|
* @return {object} Mapping of key to child
|
|
24
25
|
*/
|
|
25
26
|
getChildMapping: function(children) {
|
|
26
|
-
|
|
27
|
+
if (!children) {
|
|
28
|
+
return children;
|
|
29
|
+
}
|
|
30
|
+
return ReactFragment.extract(ReactChildren.map(children, function(child) {
|
|
27
31
|
return child;
|
|
28
|
-
});
|
|
32
|
+
}));
|
|
29
33
|
},
|
|
30
34
|
|
|
31
35
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-
|
|
2
|
+
* Copyright 2013-2015, Facebook, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
@@ -202,7 +202,7 @@ var ReactTransitionGroup = React.createClass({
|
|
|
202
202
|
render: function() {
|
|
203
203
|
// TODO: we could get rid of the need for the wrapper node
|
|
204
204
|
// by cloning a single child
|
|
205
|
-
var childrenToRender =
|
|
205
|
+
var childrenToRender = [];
|
|
206
206
|
for (var key in this.state.children) {
|
|
207
207
|
var child = this.state.children[key];
|
|
208
208
|
if (child) {
|
|
@@ -211,10 +211,10 @@ var ReactTransitionGroup = React.createClass({
|
|
|
211
211
|
// already been removed. In case you need this behavior you can provide
|
|
212
212
|
// a childFactory function to wrap every child, even the ones that are
|
|
213
213
|
// leaving.
|
|
214
|
-
childrenToRender
|
|
214
|
+
childrenToRender.push(cloneWithProps(
|
|
215
215
|
this.props.childFactory(child),
|
|
216
|
-
{ref: key}
|
|
217
|
-
);
|
|
216
|
+
{ref: key, key: key}
|
|
217
|
+
));
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
return React.createElement(
|
package/lib/ReactUpdateQueue.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @providesModule ReactUpdateQueue
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
'use strict';
|
|
13
13
|
|
|
14
14
|
var ReactLifeCycle = require("./ReactLifeCycle");
|
|
15
15
|
var ReactCurrentOwner = require("./ReactCurrentOwner");
|
|
@@ -19,6 +19,7 @@ var ReactUpdates = require("./ReactUpdates");
|
|
|
19
19
|
|
|
20
20
|
var assign = require("./Object.assign");
|
|
21
21
|
var invariant = require("./invariant");
|
|
22
|
+
var warning = require("./warning");
|
|
22
23
|
|
|
23
24
|
function enqueueUpdate(internalInstance) {
|
|
24
25
|
if (internalInstance !== ReactLifeCycle.currentlyMountingInstance) {
|
|
@@ -40,20 +41,27 @@ function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
|
|
|
40
41
|
) : invariant(ReactCurrentOwner.current == null));
|
|
41
42
|
|
|
42
43
|
var internalInstance = ReactInstanceMap.get(publicInstance);
|
|
43
|
-
(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
44
|
+
if (!internalInstance) {
|
|
45
|
+
if ("production" !== process.env.NODE_ENV) {
|
|
46
|
+
// Only warn when we have a callerName. Otherwise we should be silent.
|
|
47
|
+
// We're probably calling from enqueueCallback. We don't want to warn
|
|
48
|
+
// there because we already warned for the corresponding lifecycle method.
|
|
49
|
+
("production" !== process.env.NODE_ENV ? warning(
|
|
50
|
+
!callerName,
|
|
51
|
+
'%s(...): Can only update a mounted or mounting component. ' +
|
|
52
|
+
'This usually means you called %s() on an unmounted ' +
|
|
53
|
+
'component. This is a no-op.',
|
|
54
|
+
callerName,
|
|
55
|
+
callerName
|
|
56
|
+
) : null);
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (internalInstance === ReactLifeCycle.currentlyUnmountingInstance) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
|
|
57
65
|
return internalInstance;
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -78,15 +86,18 @@ var ReactUpdateQueue = {
|
|
|
78
86
|
'`setState`, `replaceState`, or `forceUpdate` with a callback that ' +
|
|
79
87
|
'isn\'t callable.'
|
|
80
88
|
) : invariant(typeof callback === 'function'));
|
|
81
|
-
var internalInstance =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
var internalInstance = getInternalInstanceReadyForUpdate(publicInstance);
|
|
90
|
+
|
|
91
|
+
// Previously we would throw an error if we didn't have an internal
|
|
92
|
+
// instance. Since we want to make it a no-op instead, we mirror the same
|
|
93
|
+
// behavior we have in other enqueue* methods.
|
|
94
|
+
// We also need to ignore callbacks in componentWillMount. See
|
|
95
|
+
// enqueueUpdates.
|
|
96
|
+
if (!internalInstance ||
|
|
97
|
+
internalInstance === ReactLifeCycle.currentlyMountingInstance) {
|
|
98
|
+
return null;
|
|
89
99
|
}
|
|
100
|
+
|
|
90
101
|
if (internalInstance._pendingCallbacks) {
|
|
91
102
|
internalInstance._pendingCallbacks.push(callback);
|
|
92
103
|
} else {
|
|
@@ -101,16 +112,17 @@ var ReactUpdateQueue = {
|
|
|
101
112
|
|
|
102
113
|
enqueueCallbackInternal: function(internalInstance, callback) {
|
|
103
114
|
("production" !== process.env.NODE_ENV ? invariant(
|
|
104
|
-
typeof callback ===
|
|
115
|
+
typeof callback === 'function',
|
|
105
116
|
'enqueueCallback(...): You called `setProps`, `replaceProps`, ' +
|
|
106
117
|
'`setState`, `replaceState`, or `forceUpdate` with a callback that ' +
|
|
107
118
|
'isn\'t callable.'
|
|
108
|
-
) : invariant(typeof callback ===
|
|
119
|
+
) : invariant(typeof callback === 'function'));
|
|
109
120
|
if (internalInstance._pendingCallbacks) {
|
|
110
121
|
internalInstance._pendingCallbacks.push(callback);
|
|
111
122
|
} else {
|
|
112
123
|
internalInstance._pendingCallbacks = [callback];
|
|
113
124
|
}
|
|
125
|
+
enqueueUpdate(internalInstance);
|
|
114
126
|
},
|
|
115
127
|
|
|
116
128
|
/**
|
|
@@ -132,6 +144,10 @@ var ReactUpdateQueue = {
|
|
|
132
144
|
'forceUpdate'
|
|
133
145
|
);
|
|
134
146
|
|
|
147
|
+
if (!internalInstance) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
|
|
135
151
|
internalInstance._pendingForceUpdate = true;
|
|
136
152
|
|
|
137
153
|
enqueueUpdate(internalInstance);
|
|
@@ -154,7 +170,12 @@ var ReactUpdateQueue = {
|
|
|
154
170
|
'replaceState'
|
|
155
171
|
);
|
|
156
172
|
|
|
157
|
-
internalInstance
|
|
173
|
+
if (!internalInstance) {
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
internalInstance._pendingStateQueue = [completeState];
|
|
178
|
+
internalInstance._pendingReplaceState = true;
|
|
158
179
|
|
|
159
180
|
enqueueUpdate(internalInstance);
|
|
160
181
|
},
|
|
@@ -175,12 +196,14 @@ var ReactUpdateQueue = {
|
|
|
175
196
|
'setState'
|
|
176
197
|
);
|
|
177
198
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
199
|
+
if (!internalInstance) {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
var queue =
|
|
204
|
+
internalInstance._pendingStateQueue ||
|
|
205
|
+
(internalInstance._pendingStateQueue = []);
|
|
206
|
+
queue.push(partialState);
|
|
184
207
|
|
|
185
208
|
enqueueUpdate(internalInstance);
|
|
186
209
|
},
|
|
@@ -198,6 +221,10 @@ var ReactUpdateQueue = {
|
|
|
198
221
|
'setProps'
|
|
199
222
|
);
|
|
200
223
|
|
|
224
|
+
if (!internalInstance) {
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
|
|
201
228
|
("production" !== process.env.NODE_ENV ? invariant(
|
|
202
229
|
internalInstance._isTopLevel,
|
|
203
230
|
'setProps(...): You called `setProps` on a ' +
|
|
@@ -233,6 +260,10 @@ var ReactUpdateQueue = {
|
|
|
233
260
|
'replaceProps'
|
|
234
261
|
);
|
|
235
262
|
|
|
263
|
+
if (!internalInstance) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
|
|
236
267
|
("production" !== process.env.NODE_ENV ? invariant(
|
|
237
268
|
internalInstance._isTopLevel,
|
|
238
269
|
'replaceProps(...): You called `replaceProps` on a ' +
|
package/lib/ReactUpdates.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-
|
|
2
|
+
* Copyright 2013-2015, Facebook, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
@@ -15,6 +15,7 @@ var CallbackQueue = require("./CallbackQueue");
|
|
|
15
15
|
var PooledClass = require("./PooledClass");
|
|
16
16
|
var ReactCurrentOwner = require("./ReactCurrentOwner");
|
|
17
17
|
var ReactPerf = require("./ReactPerf");
|
|
18
|
+
var ReactReconciler = require("./ReactReconciler");
|
|
18
19
|
var Transaction = require("./Transaction");
|
|
19
20
|
|
|
20
21
|
var assign = require("./Object.assign");
|
|
@@ -146,7 +147,11 @@ function runBatchedUpdates(transaction) {
|
|
|
146
147
|
// stash the callbacks first
|
|
147
148
|
var callbacks = component._pendingCallbacks;
|
|
148
149
|
component._pendingCallbacks = null;
|
|
149
|
-
|
|
150
|
+
|
|
151
|
+
ReactReconciler.performUpdateIfNecessary(
|
|
152
|
+
component,
|
|
153
|
+
transaction.reconcileTransaction
|
|
154
|
+
);
|
|
150
155
|
|
|
151
156
|
if (callbacks) {
|
|
152
157
|
for (var j = 0; j < callbacks.length; j++) {
|
package/lib/ReactWithAddons.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-
|
|
2
|
+
* Copyright 2013-2015, Facebook, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
@@ -23,6 +23,7 @@ var React = require("./React");
|
|
|
23
23
|
var ReactComponentWithPureRenderMixin =
|
|
24
24
|
require("./ReactComponentWithPureRenderMixin");
|
|
25
25
|
var ReactCSSTransitionGroup = require("./ReactCSSTransitionGroup");
|
|
26
|
+
var ReactFragment = require("./ReactFragment");
|
|
26
27
|
var ReactTransitionGroup = require("./ReactTransitionGroup");
|
|
27
28
|
var ReactUpdates = require("./ReactUpdates");
|
|
28
29
|
|
|
@@ -39,6 +40,7 @@ React.addons = {
|
|
|
39
40
|
batchedUpdates: ReactUpdates.batchedUpdates,
|
|
40
41
|
classSet: cx,
|
|
41
42
|
cloneWithProps: cloneWithProps,
|
|
43
|
+
createFragment: ReactFragment.create,
|
|
42
44
|
update: update
|
|
43
45
|
};
|
|
44
46
|
|
package/lib/SelectEventPlugin.js
CHANGED
package/lib/SimpleEventPlugin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-
|
|
2
|
+
* Copyright 2013-2015, Facebook, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
@@ -285,8 +285,8 @@ var topLevelEventsToDispatchConfig = {
|
|
|
285
285
|
topWheel: eventTypes.wheel
|
|
286
286
|
};
|
|
287
287
|
|
|
288
|
-
for (var
|
|
289
|
-
topLevelEventsToDispatchConfig[
|
|
288
|
+
for (var type in topLevelEventsToDispatchConfig) {
|
|
289
|
+
topLevelEventsToDispatchConfig[type].dependencies = [type];
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
var SimpleEventPlugin = {
|
package/lib/SyntheticEvent.js
CHANGED
package/lib/SyntheticUIEvent.js
CHANGED
package/lib/Transaction.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-
|
|
2
|
+
* Copyright 2013-2015, Facebook, Inc.
|
|
3
3
|
* All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the BSD-style license found in the
|
|
@@ -61,7 +61,7 @@ var invariant = require("./invariant");
|
|
|
61
61
|
* content.
|
|
62
62
|
* - (Future use case): Wrapping particular flushes of the `ReactWorker` queue
|
|
63
63
|
* to preserve the `scrollTop` (an automatic scroll aware DOM).
|
|
64
|
-
* - (Future use case): Layout calculations before and after DOM
|
|
64
|
+
* - (Future use case): Layout calculations before and after DOM updates.
|
|
65
65
|
*
|
|
66
66
|
* Transactional plugin API:
|
|
67
67
|
* - A module that has an `initialize` method that returns any precomputation.
|
package/lib/ViewportMetrics.js
CHANGED