Commit Graph
895 Commits
Author SHA1 Message Date
Paul O'ShannessyandPaul O’Shannessy ad693d9541 order object properties consistently 2013-12-12 16:01:49 -08:00
Pete HuntandPaul O’Shannessy 2d5142bc35 Better error message for renderComponentToString()
Reported on Twitter by AirBnb (who are integrating React into their open-source JS framework). They made a mistake and passed a string in as the
component. We should have a better error message for that.
2013-12-12 16:01:49 -08:00
Marshall RochandPaul O’Shannessy 6f9f371d2b Rename receiveProps to receiveComponent
This renames receiveProps and changes it to take the next component to copy props from instead of just the props. That is,

  component.receiveComponent(nextComponent, transaction)

instead of

  component.receiveProps(nextComponent.props, transaction)

This is a precursor to adding contexts, which will also need to get propagated just like props. This change allows ReactCompositeComponent to override `receiveProps` and do something like

  this._pendingContext = nextComponent.context;

Conflicts:
	src/core/ReactCompositeComponent.js
2013-12-12 16:01:43 -08:00
Simon HøjbergandPaul O’Shannessy 9e9b3f7348 Transitions: Handle undefined input to mergeKeySet
Gracefully handle undefined input to mergeKeySet.
2013-12-12 15:58:54 -08:00
Simon HøjbergandPaul O’Shannessy 012ac24728 ReactTransitions: Don't animate undefined children 2013-12-12 15:58:54 -08:00
Brian KimandPaul O’Shannessy 4915a63973 Fix failing tests
Two of your tests were failing because of commit
1e71df5399
I fixed them by:
1) Using jasmine's spyOn in ReactCompositeComponentError-test.js
2) Inverting the function wrapping in the above commit.
Godspeed.
2013-12-12 15:58:54 -08:00
Tim YungandPaul O’Shannessy 55c5178a55 Rename nodeContains to containsNode
Conflicts:
	src/core/ReactMount.js
2013-12-12 15:58:51 -08:00
Mouad DebbarandPaul O’Shannessy f142b9b99b Add support for oncontextmenu in React. 2013-12-12 15:57:00 -08:00
Felix KlingandPaul O’Shannessy 4eb9487c97 Improve error logging for event handlers of React components.
This guards every auto-bound method and uses the name of the component and method as guard name.
2013-12-12 15:57:00 -08:00
Andreas SvenssonandPaul O’Shannessy 3f31ee8d3c Fix wheelDelta misspelled 2013-12-12 15:57:00 -08:00
Ben AlpertandPaul O’Shannessy 89480e9f38 Make submit button default value appear correctly
Fixes #473.
2013-12-12 15:57:00 -08:00
SanderSpiesandPaul O’Shannessy 4361fb36f9 Removing 'isEventSupported' 2013-12-12 15:57:00 -08:00
SanderSpiesandPaul O’Shannessy e1fce03d64 Removing unused useSelect variable. 2013-12-12 15:57:00 -08:00
Laurence RoweandPaul O’Shannessy 0b4f89cecb Script async and defer properties 2013-12-12 15:57:00 -08:00
Paul O’Shannessy c09bc39a34 Oxford comma 2013-12-12 15:57:00 -08:00
Josh DuckandPaul O’Shannessy 996cda82e1 Fix ReactDOMSelection for IE 11
IE 11 no longer supports the legacy document.selection API.
Their implementation of window.getSelection() doesn't support
the extend() method, which we were relying on.

If the selection is RTL and selection extend is missing, then just
flip the selection.
2013-12-12 15:57:00 -08:00
Matti NelimarkkaandPaul O’Shannessy efa3618955 Clear error message when rendering a nonvalid component 2013-12-12 15:57:00 -08:00
Tim YungandPaul O’Shannessy c6d2f06697 Better getUnboundedScrollPosition for windows
Instead of using browser sniffing, `getUnboundedScrollPosition` can do
better and not have to depend on the `getDocumentScrollElement` module.
2013-12-12 15:56:59 -08:00
Paul O'ShannessyandPaul O’Shannessy 06edb20cdf Reorder DefaultDOMPropertyConfig
`autoCorrect` belongs with the non-standard properties list.
2013-12-12 15:56:59 -08:00
Mark RichardsonandPaul O’Shannessy f4da9418f2 Add autoCorrect to list of supported DOM properties 2013-12-12 15:56:59 -08:00
Tim YungandPaul O’Shannessy 7ecd72e724 Forward Compatibility w/ WebKit & Blink
Newer versions of WebKit and Blink will support both `document.body.scrollTop` and `document.documentElement.scrollTop`. Therefore, implementing cross-browser compatibility by summing the two will no longer work.

This changes React to use `getUnboundedScrollPosition` so we get the fix and consistency in one change!

See: https://rniwa.com/2013-10-29/web-compatibility-story-of-scrolltop-and-scrollleft/
2013-12-12 15:56:59 -08:00
Cheng LouandPaul O’Shannessy 48af9c7bda docs tips parent-child communication 2013-12-02 15:49:27 -08:00
Paul O’Shannessy 1da10d718d Fix blog pagination
I missed this in the Jekyll upgrade.
2013-12-02 15:47:21 -08:00
Paul O’Shannessy ef8bd04b04 [docs] Fix download links to addons builds 2013-12-02 15:14:52 -08:00
Pete HuntandPaul O’Shannessy 030835b914 Merge pull request #440 from petehunt/new-taglines
New marketing copy
2013-12-02 15:10:24 -08:00
Ben AlpertandPaul O’Shannessy abf199d5ff Tweaks to README
Most significant change is updating the leading copy to match #440.
2013-12-02 15:10:12 -08:00
petehuntandPaul O’Shannessy 1053a1453a Fix frontpage example to retain selection 2013-12-02 15:10:12 -08:00
Cheng LouandPaul O’Shannessy b8194d92f6 docs add download links for react-with-addons 2013-12-02 15:10:12 -08:00
Cheng LouandPaul O’Shannessy 18a6b0b94b make docs jsx compiler highlight transpiled js code 2013-12-02 15:10:12 -08:00
Sundeep MalladiandPaul O’Shannessy 0b31175238 Minor spelling correction in docs 2013-12-02 15:10:12 -08:00
Cheng LouandPaul O’Shannessy 6a0bb61b16 docs select value to control chosen option 2013-12-02 15:10:12 -08:00
Ben AlpertandPaul O’Shannessy c065b03b8a autoBind -> Autobinding
We don't use the term autoBind anywhere any more.
2013-12-02 15:10:12 -08:00
Levi McCallumandPaul O’Shannessy c32c788e5a Add explination of autoBind to DOM Event Listener tip 2013-12-02 15:10:12 -08:00
Paul O’Shannessy 4a0a14d319 Put nav data in "_data"
New in Jekyll 1.3 - http://jekyllrb.com/docs/datafiles/
2013-11-20 23:34:10 -08:00
Paul O’Shannessy a55d44efaf Fix pagination 2013-11-20 23:34:10 -08:00
Paul O’Shannessy 08fcec503c Update jekyll to 1.3 2013-11-20 23:34:10 -08:00
Cheng LouandVjeux cd6d43e4c0 docs highlight className and htmlFor transforms 2013-11-19 23:28:27 +01:00
Cheng LouandVjeux c329eb6335 docs classSet semicolons missing 2013-11-19 23:28:27 +01:00
Paul O’ShannessyandVjeux 215988f879 Merge branch 'chenglou-classSet'
closes #463
2013-11-19 23:27:40 +01:00
Ben AlpertandVjeux fb7e157cba Make doc headers clickable again
...without preventing clicks on other things.

Just use an `<a name="...">` tag that doesn't take up any space to make sure that we're not covering up something else.

For whatever reason, doing `position: relative; top: -$navHeight;` doesn't work and causes the anchor target not to be moved up. This solution works in both Chrome and Firefox.
2013-11-19 23:24:49 +01:00
Vjeux 8ead6dce76 Community round-up #11 2013-11-19 22:57:46 +01:00
Paul O’Shannessy 79b09d9597 Merge pull request #362 from mcsheffrey/feat-documentation-cookbook
React Tips documentation
2013-11-14 15:06:05 -08:00
Cheng LouandPaul O’Shannessy fb1a072739 fix doc & example transition opacity from .99 to 1
The initial thought was that an opacity animation from 0.01 to 1 causes trouble on some browser. But after testing on opera 12.15, ff 23, ie 10, chrome 30, desktop/mobile safari 7 and chrome android I confirm this works.
2013-11-13 17:55:03 -08:00
Pieter VanderwerffandPaul O’Shannessy c1c7a601dd Added clearfix to blog content holder 2013-11-13 17:54:31 -08:00
Fabio M. CostaandPaul O’Shannessy adad0d72be Fixes the name of the component on documentation
AvatarImage -> Avatar
2013-11-13 17:54:02 -08:00
Guido BoumanandPaul O’Shannessy e7f48a6c00 Prevents header anchors from interfering with clickable content. 2013-11-13 17:54:02 -08:00
petehuntandPaul O’Shannessy d3cee1ee2e Make state immutable in tutorial (eek) 2013-11-08 13:31:45 -08:00
Cheng LouandPaul O’Shannessy d47d509637 move docs tooling from JSX in Depth
Also removes the code wrap around the syntax highlighting link.
2013-11-08 13:31:34 -08:00
VjeuxandPaul O’Shannessy 411419c361 Community round-up #10 2013-11-06 12:44:42 -08:00
Ben AlpertandPaul O’Shannessy fc67d5544c Use smaller blog images and host directly 2013-11-06 12:44:25 -08:00