Dan Abramov
3863330524
Add ReactInstrumentation
...
This adds `ReactInstrumentation` for the isomorphic package that uses the same approach as `ReactDOMInstrumentation`. Currently it is gated behind `__DEV__` but we will likely change this later to a runtime flag determined by whether there are any active listeners.
The first few events we add here should be sufficient for React DevTools, as determined by the `hook.emit()` calls in https://github.com/facebook/react-devtools/blob/d90c43201617d5aef378669da926d79515b6a811/backend/attachRenderer.js .
These events will also be useful for reconstructing the parent tree in the ReactPerf rewrite in #6046 .
2016-02-18 22:52:22 +00:00
Ben Alpert
684ef3e320
Merge pull request #5753 from mwiencek/no-text-span-2
...
Don't wrap text in <span> elements
2016-02-18 12:02:17 -08:00
Paul O’Shannessy
f818fa38b4
[docs] Use consistent formatting for headers
2016-02-18 11:53:47 -08:00
Michael Wiencek
203850013a
Don't wrap text in <span> elements
...
Instead, use opening and closing comment nodes to delimit text data.
2016-02-18 13:49:14 -06:00
Jim
5d7cd93b0e
Merge pull request #6064 from jimfb/provide-msunsafe-wrapper
...
Create ms-unsafe functions in one place, simplifies code.
2016-02-18 11:14:47 -08:00
Jim
efa8624eb9
Merge pull request #6059 from jimfb/tutorial-children-callback
...
Clearify callback text in the tutorial
2016-02-18 11:14:24 -08:00
Jim
6454bfb9de
Merge pull request #6065 from benjycui/fix-comments
...
Update comments for EventPluginHub.js
2016-02-18 00:31:50 -08:00
Benjy Cui
c54249c868
Update comments for EventPluginHub.js
2016-02-18 16:23:00 +08:00
Jim
e8e56e8723
Merge pull request #5940 from kentcdodds/pr/warn-event-pool-access
...
Add warning when reading from event which has been returned to the pool
2016-02-17 21:51:40 -08:00
Kent C. Dodds
6312852688
warn(SyntheticEvent): Warn when accessing or setting properties on released syntheticEvents
...
Closes #5939
2016-02-17 22:46:12 -07:00
jim
51d16473b0
Create ms-unsafe functions in one place, simplifies code.
2016-02-17 21:10:20 -08:00
Jim
5879c9e1a4
Merge pull request #6063 from Andrew8xx8/master
...
Wrap insertBefore in Windows 8 apps
2016-02-17 20:28:27 -08:00
Andreww8xx8
8d08f3f00a
Wrap insertBefore in Windows 8 apps
2016-02-18 06:12:29 +03:00
Ben Alpert
3a4e1dbb5b
Fix merge conflict in #4940
2016-02-17 17:20:37 -08:00
jim
5ffd1db570
Clearify callback text in the tutorial
2016-02-17 16:30:11 -08:00
Ben Alpert
62e9531023
Merge pull request #4940 from spicyj/no-construct
...
Remove "construct" call except on composites
2016-02-17 15:53:25 -08:00
Ben Alpert
acb49363d5
Remove "construct" call except on composites
...
This is a little simpler (and a teeny tiny bit faster). The one in ReactCompositeComponent stays because of the way we create ReactCompositeComponentWrapper inside instantiateReactComponent.
2016-02-17 15:48:24 -08:00
Jim
c9e0fc766f
Merge pull request #5720 from edmellum/master
...
Fix #4963 - SVG <use> swallows click events
2016-02-17 07:01:50 -08:00
David Ed Mellum
2fdaba49c7
Fix #4963 - SVG <use> swallows click events
2016-02-17 15:25:45 +01:00
Christoph Pojer
50c28fa9c4
Merge pull request #6052 from cpojer/master
...
Update to jest-cli 0.9.
2016-02-17 15:44:28 +09:00
cpojer
383e2f938d
Update to jest-cli 0.9.
2016-02-17 13:01:14 +09:00
Jim
73ad44567c
Merge pull request #6039 from mxstbr/convert-docs-to-stateless
...
Update documentation to stateless components
2016-02-16 12:25:39 -08:00
Jim
356fa4e8c0
Merge pull request #6048 from mxstbr/update-tutorial-versions
...
Update jQuery and marked versions in tutorial docs
2016-02-16 12:10:06 -08:00
Max
d26ec08cf1
Update jQuery and marked versions in tutorial
2016-02-16 12:07:03 -08:00
Paul O’Shannessy
41dea65abf
Merge pull request #6017 from zpao/docs-sri-task
...
Generate SRI hashes for docs
2016-02-16 11:50:31 -08:00
Jim
3bee2d962a
Merge pull request #5744 from prometheansacrifice/warn-if-user-accesses-key-ref-props
...
Warns on access of `props.key` and `props.ref`
2016-02-16 10:11:28 -08:00
Manas
c3980a6d08
Warns on access of props.key and props.ref
2016-02-16 22:04:32 +05:30
Jim
ee64241e90
Merge pull request #6044 from bellanchor/master
...
Fix typo in Chinese tutorial
2016-02-16 03:11:34 -08:00
liudongsheng
5b80f9009f
Fix typo in Chinese tutorial
2016-02-16 18:24:07 +08:00
Max
ec41af0557
Update documentation to stateless components
...
Ref #5949 @jimfb
2016-02-15 10:24:04 -08:00
Jim
2410dc7f15
Merge pull request #6028 from sambev/issue/6027-uncaught-type-error
...
Fix for issue/6027.
2016-02-13 13:19:11 -08:00
Sam Beveridge
57d59ea344
Remove check for _wrapperState.pendingUpdate.
...
We can just set it to true regardless.
2016-02-13 12:01:49 -07:00
Paul O’Shannessy
8aacf1e850
Merge pull request #6032 from saiichihashimoto/allow-profile-attr
...
Allow Profile attr
2016-02-13 09:26:20 -08:00
Paul O’Shannessy
175d0978cc
Merge pull request #6031 from jontewks/update-docs
...
Add npm install instructions to readme
2016-02-13 09:24:04 -08:00
Saiichi Hashimoto
0b87d7f56f
Update HTMLDOMPropertyConfig.js
2016-02-13 00:42:47 -08:00
Jon Tewksbury
17c9dffed4
Add npm install instructions to readme
2016-02-12 23:20:52 -08:00
Jim
d684b1598d
Merge pull request #5864 from TheBlasfem/master
...
Warn when an input switches between controlled and uncontrolled
2016-02-12 16:34:55 -08:00
Ben Alpert
b3eaab9f75
Merge pull request #6030 from facebook/vjeux-patch-1
...
Add thanks for the react org
2016-02-12 15:00:27 -08:00
Christopher Chedeau
5ce1fea75a
Add thanks for the react org
2016-02-12 14:50:37 -08:00
Sam Beveridge
385cadf8e3
Forgot to 'not' the pendingUpdate condition.
2016-02-12 14:32:47 -07:00
Sam Beveridge
c4a2425eca
Fix for issue/6027.
...
ReactDOMSelect's _handleChange function tries to set
this._wrapperState.pendingUpdate = true after executing the onChange
function. However, if the select was removed as a result of said
fuction, this._wrapperState would be null. Resulting in an
Uncaught TypeError: Cannot set property 'pendingUpdate' of null.
2016-02-12 14:00:15 -07:00
Jim
bbd5a78efa
Merge pull request #6009 from jimfb/error-boundaries-initial-render-componentWillUnmount
...
Errors in componentWillUnmount should be caught by error boundary on initial render.
2016-02-11 18:11:35 -08:00
jim
dd390b3e36
Errors in componentWillUnmount should be caught by error boundary on initial render.
2016-02-11 17:44:35 -08:00
Jim
293dc75584
Merge pull request #6008 from jimfb/module-pattern
...
Enable module pattern.
2016-02-11 17:26:46 -08:00
jim
428ef03bbb
Enable module pattern.
2016-02-11 12:59:25 -08:00
Ben Alpert
3e41da767f
Merge pull request #5892 from ianobermiller/children-map-key-slash
...
ReactChildren.map: only add slash if new child has key
2016-02-10 16:53:59 -08:00
Paul O’Shannessy
b560fea08d
Merge pull request #5909 from rajatsehgal/patch-1
...
Use const instead of var (ES6 best practices)
2016-02-10 13:32:21 -08:00
Paul O’Shannessy
e5b304ebe3
Merge pull request #6016 from zpao/rm-batched-updates-addons
...
Remove React.addons.batchedUpdates
2016-02-10 12:23:55 -08:00
Paul O’Shannessy
fcfbcf79a0
[docs] Reformat script tags on download page
2016-02-10 12:13:01 -08:00
Paul O’Shannessy
3ce7e91946
[docs] Automate SRI hash generation with rake task
2016-02-10 12:11:45 -08:00