Commit Graph

879 Commits

Author SHA1 Message Date
Thomas Aylott 001bda28d9 Generate the browser test list at built time 2013-11-06 15:30:49 -05:00
Pete Hunt 28eddd1670 XML->HTML, because people are fickle. 2013-11-05 19:22:47 -08:00
Pete Hunt 091425058b Merge pull request #482 from chenglou/data-lowercase
add docs lowercase mention for data- and aria-
2013-11-05 18:10:56 -08:00
Cheng Lou e89ad6c960 add docs lowercase mention for data- and aria- 2013-11-05 21:02:06 -05:00
Paul Shen 0fed861424 Move merge utility functions from utils to vendor/core 2013-11-05 17:17:47 -08:00
Tim Yung e78d580c06 Include Ownership in the Ship of Theseus
When we determine whether a React component should be updated (as opposed to destroyed or replaced), we currently only look at whether they share the same constructor. This adds a check for whether they share the same owner component.

I've also consolidated this logic (I cannot believe this was not already done).
2013-11-05 17:14:57 -08:00
Pete Hunt e78d5b5462 Merge pull request #481 from andreypopp/master
"Thinking in React": fix list formatting
2013-11-05 15:52:53 -08:00
Andrey Popp 20b7faaab7 "Thinking in React": fix list formatting 2013-11-06 03:50:28 +04:00
Paul O’Shannessy 5dad5e92a9 Merge pull request #476 from SanderSpies/unused-onselect
Removing unused useSelect variable.
2013-11-05 15:17:45 -08:00
Paul O’Shannessy 1553bad73a Move header link styling out of documentation only
It's used in blog posts too. I also constrained it to just the anchor
class to avoid any other headers we have.
2013-11-05 15:04:57 -08:00
Pete Hunt aadb65166d Merge pull request #453 from petehunt/blogpost2
"Thinking in React" blog post
2013-11-05 14:26:25 -08:00
petehunt c8bc605f9e rename 2013-11-05 14:25:46 -08:00
petehunt 486b60486a rename 2013-11-05 14:23:12 -08:00
petehunt 13f0644aaa make props/state section less intense 2013-11-05 14:21:15 -08:00
petehunt 780442f0b3 blogify 2013-11-05 14:21:15 -08:00
SanderSpies 27fa1f5c9c Removing 'isEventSupported' 2013-11-05 22:53:50 +01:00
SanderSpies dede55d27d Removing unused useSelect variable. 2013-11-05 22:45:02 +01:00
Paul O’Shannessy 5c6c02fe03 Merge pull request #472 from lrowe/patch-4
Script async and defer properties
2013-11-05 11:48:54 -08:00
Paul O’Shannessy 9f3ef1b6ac Remove jQuery version number from tutorial docs 2013-11-05 11:29:00 -08:00
Ben Alpert 5386cd9665 tutorial: Simplify ajax options
dataType was unnecessary; mimeType was both unnecessary and wrong in this case. Also removed an unnecessary bind and changed pollInterval to 2000 ms for consistency with https://github.com/petehunt/react-tutorial (faster is nicer if you actually try it out!).
2013-11-05 11:17:37 -08:00
Laurence Rowe 1bcca22719 Script async and defer properties 2013-11-04 20:40:53 -08:00
petehunt 6c1e8e8a66 Update tutorial to use className 2013-11-04 17:04:25 -08:00
Ben Newman ff3c8ccbe6 Merge pull request #458 from chenglou/rm-wrapup
Remove support for the wrapup packager.
2013-11-04 11:41:59 -08:00
Paul O’Shannessy da5c61afe4 Oxford comma 2013-11-04 11:34:56 -08:00
Josh Duck 18bf0b80bc 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-11-04 11:34:39 -08:00
Cheng Lou d220ce71b5 Merge branch 'rm-wrapup' of github.com:chenglou/react into rm-wrapup
Conflicts:
	package.json
2013-11-03 15:43:56 -05:00
Cheng Lou d6cbc710bd remove examples/wrapup
Apparently it's no longer relevant.
2013-11-03 15:41:40 -05:00
Paul O’Shannessy 10ccd9f103 Merge pull request #465 from matnel/bug388
Clear error message when rendering a nonvalid component
2013-11-01 18:35:50 -07:00
Matti Nelimarkka 9e24257a4e Clear error message when rendering a nonvalid component 2013-11-01 17:32:09 -07:00
Paul O’Shannessy aedf580a33 [docs] Clarify when getInitialState is called. 2013-11-01 15:29:10 -07:00
Tim Yung 0dc011c40c Better getUnboundedScrollPosition for windows
Instead of using browser sniffing, `getUnboundedScrollPosition` can do
better and not have to depend on the `getDocumentScrollElement` module.
2013-10-31 15:24:58 -07:00
JeffMo a4f8ad1bb0 Switch utility function calls -> namespaced calls 2013-10-31 13:45:16 -07:00
Cheng Lou 0acf5e22bd remove examples/wrapup
Apparently it's no longer relevant.
2013-10-31 15:49:37 -04:00
Ben Newman df1099649c Merge pull request #457 from benjamn/upgrade-populist
Bump populist version to v0.1.4
2013-10-31 10:22:14 -07:00
Ben Newman d1ad4a3ff0 Bump populist version to v0.1.4.
The new version includes a fix for this IE8 issue reported by
@subtleGradient: https://github.com/benjamn/populist/issues/4

Closes #456.
2013-10-31 13:03:31 -04:00
Paul O'Shannessy 2cf7d943df Reorder DefaultDOMPropertyConfig
`autoCorrect` belongs with the non-standard properties list.
2013-10-30 16:58:05 -07:00
Mark Richardson 9b44ad6ce5 Add autoCorrect to list of supported DOM properties 2013-10-30 16:57:53 -07:00
Tim Yung 7789a32438 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-10-30 16:56:55 -07:00
Paul O’Shannessy a5d1e2fd90 blog post for 0.5.1 2013-10-29 13:16:53 -07:00
Paul O’Shannessy d8e3779010 Update everything for v0.5.1
Cherry-picked from f3db0006e8, excluding
version changes.
2013-10-29 13:15:33 -07:00
Laurence Rowe 280eff41f3 Make 'disabled' MUST_USE_ATTRIBUTE for compatibility with CSS [disabled] selectors.
When a ReactDOMComponent is created with the property `disabled: true` subsequently setting the property to `disabled: false` the HTML attribute `disabled="true"` was being left in the DOM.
2013-10-28 18:53:19 -07:00
Paul O’Shannessy 214e9103bf Merge pull request #423 from andreypopp/master
Re-rendering components into a document leaks components
2013-10-28 17:00:19 -07:00
Andrey Popp ac9dd92272 Fix unmounting components mounted into doc element
If we are to unmount a component mounted into a document element we should
unmount it from document.documentElement and not from document.firstChild which
is a doctype element in this specific case.
2013-10-29 02:49:00 +04:00
Ben Alpert 25ba629098 Move heading anchors 50px up to avoid nav bar
Fixes #447.

We do this by moving the actual anchored element up in the page without moving the actual text. (Apple uses a similar trick in their framed docs.) Now this looks a bit sillier on smaller screens but it's better overall.
2013-10-28 13:52:58 -07:00
Paul O’Shannessy 10f3d93df7 Update API docs for unmountAndReleaseReactRootNode 2013-10-26 17:42:34 -07:00
Pete Hunt 1c77e1a492 Merge pull request #446 from brianr/master
ReactTransitionGroup example: fix typo and logic bug in handleRemove
2013-10-25 18:13:46 -07:00
Ian Obermiller fbb741febb Fix ReactTransitionEvents detectEvents 2013-10-25 18:11:58 -07:00
Brian Rue c5cc145538 ReactTransitionGroup example: fix typo and logic bug in handleRemove 2013-10-25 18:03:31 -07:00
Cat Chen 0ef1ca0024 fixed %d in invariant call 2013-10-25 18:03:26 -07:00
Josh Duck 0d2d3360d0 Don't reset mouseDown in focus handlers
Focus fires after mouse down on initial click, so we lost the
flag when the user initially began dragging on the input.
2013-10-22 14:09:33 -07:00