Paul O’Shannessy
60c2f56e6e
Merge pull request #3074 from noyobo/master
...
fix Chinese docs typos
2015-02-06 17:17:46 -08:00
Paul O’Shannessy
7853260788
Merge pull request #3080 from zpao/upgrade-internal-modules
...
Upgrade internal modules
2015-02-06 17:17:00 -08:00
Henry Zhu
bcdf8f2375
Add React.js Conf Keynote talk (with playlist)
2015-02-06 18:31:00 -05:00
Jim
3740c51616
Merge pull request #3078 from vincentriemer/patch-1
...
Fixed pure-render-mixin documentation
2015-02-06 13:33:06 -08:00
Cheng Lou
b6980ab980
[Docs] Add note on classSet deprecation
2015-02-06 16:25:48 -05:00
Jim
c69a9206a4
Merge pull request #3073 from gsklee/patch-3
...
Fix typos in animation.md
2015-02-06 13:14:30 -08:00
Paul O’Shannessy
705353fbaf
Move keyMirror to vendor to match internal move
2015-02-06 12:09:36 -08:00
Vincent Riemer
0bf88f26a4
Corrected pure-render-mixin documentation
...
Fixed the PureRenderMixin documentation which was incorrectly importing the base React library instead of ReactWithAddons.
2015-02-06 14:34:09 -05:00
Paul O’Shannessy
3525d01b9b
Remove more upstream modules that aren't used
...
Immutable* hasn't been used... ever?
copyProperties, merge were deprecated as part of 0.12. We've replaced
them with Object.assign.
2015-02-06 09:54:52 -08:00
noyobo
7f6c575d9d
Chinese docs Typesetting beautification & relate links
2015-02-06 19:44:14 +08:00
noyobo
9296f15682
Chinese docs typo
2015-02-06 17:31:33 +08:00
YouBao Nong
8197bface7
sync up Chinese docs links
2015-02-06 16:26:43 +08:00
YouBao Nong
7cb1b9bdb2
fix next page link typo
...
下一页链接错误
2015-02-06 15:53:45 +08:00
Preston Parry
0903120ad1
Update tutorial.md
2015-02-05 22:57:36 -08:00
G. Kay Lee
678ec31e41
Fix typos
2015-02-06 14:47:56 +08:00
Paul O’Shannessy
8ab0ecba13
Sync internal modules
...
We've actually diverged more with some modules, but we don't want
a cascade of dependencies out here. Mostly, the changes internally that
we don't want are tied to FB infrastructure but otherwise are
functionally equivalent (usually around error reporting, code monitoring).
2015-02-05 16:31:54 -08:00
Sebastian Markbåge
007207bac4
Merge pull request #3068 from sebmarkbage/dedupwarning
...
Warn only once for each class when accessing .type
2015-02-05 15:36:37 -08:00
Nick Williams
5bf8cda58f
document checkbox using click handlers for change events
...
I hit an issue related to this earlier today. Feels like a short paragraph warning of potential issues would be of benefit. Discussed with @zpao on IRC, agreed to make PR.
For more info:
* https://github.com/facebook/react/issues/3005#issuecomment-72513965
* https://github.com/facebook/react/blob/c7e4f55eb061b578497ed316d3e9e0dfa7026f46/src/browser/eventPlugins/ChangeEventPlugin.js#L287
2015-02-05 22:32:23 +00:00
Sebastian Markbage
140d9b4192
Warn only once for each class when accessing .type
...
Currently it is a bit too spammy.
2015-02-05 12:32:15 -08:00
Andreas Svensson
c7e4f55eb0
Merge pull request #3047 from syranide/escbrow2
...
Drop processAttributeNameAndPrefix and invalid attribute name escaping
2015-02-05 20:53:47 +01:00
Paul O’Shannessy
123d218eaf
Merge pull request #3046 from cobbweb/patch-1
...
Add autoFocus to supported HTML attributes
2015-02-05 10:50:38 -08:00
syranide
6af987c524
Drop processAttributeNameAndPrefix and invalid attribute name escaping
2015-02-05 09:43:26 +01:00
Andreas Svensson
04e6d02e40
Merge pull request #1599 from syranide/escbrow
...
Split escapeTextForBrowser into escapeTextContentForBrowser and quoteAttributeValueForBrowser
2015-02-05 09:41:36 +01:00
Andrew Cobby
a4c96d6e9c
Add autoFocus to supported HTML attributes
...
It appears to be supported http://jsfiddle.net/9f48wbsa/1/
2015-02-05 16:45:27 +10:00
Paul O’Shannessy
787200631b
Merge pull request #3045 from milanlandaverde/removes-validation-msg
...
remove extraneous argument to createChainableTypeChecker in ReactPropTypes
2015-02-04 19:36:11 -08:00
Marlon Landaverde
876fdd0190
removes loose validation message
2015-02-04 21:13:59 -06:00
Paul O’Shannessy
7e6c820cd2
Merge pull request #3022 from btholt/master
...
Added itemRef and itemId for complete microdata support.
2015-02-04 16:57:03 -08:00
Paul O’Shannessy
f2cd1a0591
Merge pull request #2969 from gsklee/patch-1
...
Update thinking-in-react.md
2015-02-04 15:22:37 -08:00
Paul O’Shannessy
ac4b64059e
Merge pull request #3013 from akheron/patch-2
...
Document React.addons.TestUtils.isElement()
2015-02-04 15:19:08 -08:00
Sebastian Markbåge
3abfe00ae7
Merge pull request #3039 from sebmarkbage/fixismounted
...
Fix isMounted inside of render
2015-02-04 11:53:07 -08:00
Sebastian Markbage
263800e09b
Fix isMounted inside of render
...
This is apparently used to determine if you can access refs.
Bad pattern, but a pattern nonetheless.
2015-02-04 11:50:04 -08:00
Paul O’Shannessy
99a2ef30ae
Merge pull request #3032 from germ13/patch-1
...
Corrected documentation
2015-02-04 11:46:27 -08:00
Paul O’Shannessy
f77e86834b
Merge pull request #3036 from jergason/master
...
Fix list formatting in glossary
2015-02-04 11:45:05 -08:00
Andreas Svensson
6672a7ec62
Merge pull request #2135 from syranide/ie8enctype
...
IE8 does not have a setter for property "enctype"
2015-02-04 13:47:54 +01:00
Andreas Svensson
8ca058ac4e
Split escapeTextForBrowser into escapeTextContentForBrowser and quoteAttributeValueForBrowser
2015-02-04 13:44:38 +01:00
Jamison Dance
d74d0e3215
Fix list formatting in glossary
2015-02-03 23:34:43 -07:00
juan serrano
3a0534e1b8
Corrected documentation
2015-02-03 18:41:47 -08:00
Lee Byron
9174501771
Merge pull request #2991 from leebyron/state-queue
...
Set state takes a function
2015-02-03 19:52:26 -05:00
Lee Byron
279b956c9b
Set state takes a function
...
This diff enables setState to accept a function in addition to a state partial. If you provide a function, it will be called with the up-to-date `state, props, context` as arguments.
This enables some nicer syntax for complex setState patterns:
If setState is doing an increment and wants to guarantee atomicy, you need a function:
```
this.setState(state => ({ number: state.number + 1 }));
```
This atomicy is particularly important if setState is called multiple times in a single frame of execution as the result of complex user actions. It's a tricky bug to chase down and difficult to determine how to fix when you find it. The current pattern of reaching into _pendingState relies on an implementation detail.
In this example: props.doAction() may result in your ancestor re-rendering and providing you with new props. If setState is called directly with an object literal referencing `this.props`, it will use the *old* version of props, not the new value. Using a function solves for this case:
```
this.props.doAction();
this.setState((state, props) => ({ number: state.number * props.multiplier }));
```
2015-02-03 19:49:17 -05:00
Paul O’Shannessy
3f60a99cd9
Merge pull request #3016 from hnordt/patch-1
...
Removing unnecessary returns
2015-02-03 10:46:21 -08:00
Jeff Morrison
acca4b3993
Merge pull request #3020 from syranide/jsxbracketcodemod
...
Added jsx_orphaned_brackets_transformer for breaking JSX parser change
2015-02-03 09:56:28 -08:00
Héliton Nordt
62213e08df
Fix highlighting
2015-02-03 08:38:16 -02:00
Sebastian Markbåge
c8833daf53
Merge pull request #3026 from sebmarkbage/fixdependency
...
Hot fix cyclic dependency
2015-02-02 23:57:46 -08:00
Sebastian Markbage
e3f95ea293
Hot fix cyclic dependency
...
We accidentally created an unfortunate cyclic dependency because of the
auto-wrapper hack that uses ReactClass.
Making it injected instead.
2015-02-02 23:55:34 -08:00
Sebastian Markbåge
50c38bbc75
Merge pull request #3023 from sebmarkbage/devtoolsfix
...
Expose ReactReconciler
2015-02-02 22:07:28 -08:00
Sebastian Markbåge
1172f636cb
Merge pull request #3025 from sebmarkbage/fixrendercallback
...
Always trigger an update when a callback is enqueued.
2015-02-02 22:07:13 -08:00
Brian Holt
7b92d71744
Changed itemId to itemID and added clarity to the comments of where it is specified.
2015-02-02 21:58:00 -08:00
Sebastian Markbage
2702281a13
Always trigger an update when a callback is enqueued.
...
enqueueCallbackInternal forgot to schedule an update.
We could rely on the implicit contract of enqueueElement to do it. However,
if we're currently outside a transaction, it'll flush synchronously. Before
we enqueue the callback. We could also enqueueCallback before we
enqueueElement, but that causes a fragile relationship between them. E.g.
enqueueElement should not need to schedule an update if it is the same
element.
2015-02-02 20:42:15 -08:00
Sebastian Markbage
e67ff7ee78
Expose ReactReconciler
...
This can be used by devtools to monkey patch the reconciler and therefore
get notified whenever any internal instance is updated.
2015-02-02 18:15:31 -08:00
Brian Holt
ea67a1d436
Added itemRef and itemId for complete microdata support.
2015-02-02 17:17:04 -08:00