Commit Graph
19463 Commits
Author SHA1 Message Date
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
petehunt f713f06c62 less aggro 2013-11-01 11:47:38 -07:00
Cheng Lou 899ae83acb add docs on classSet add-on 2013-10-31 21:59:35 -04:00
Cheng Lou 3c1e0f0a8c split add-ons into subsections
In preparation for documenting `classSet` add-on.
2013-10-31 21:10:19 -04: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
Cheng Lou e455e28ff8 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-10-31 17:35:38 -04: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
Connor McSheffrey 551cc01430 Update nav config with new entry names/permalinks 2013-10-30 12:29:38 -07:00
Connor McSheffrey 22058d09da Merge pull request #18 from chenglou/title-case
title case for entry titles; fix two entry names
2013-10-30 12:24:50 -07:00
Cheng Lou 80efa9a33e title case for entry titles; fix two entry names 2013-10-30 15:06:16 -04:00
Connor McSheffrey 6a0976ca9d Merge pull request #17 from chenglou/feat-documentation-cookbook
fix 3 more entries
2013-10-29 18:10:56 -07:00
Connor McSheffrey 5847536c9d Removed grunt task for building live edits and removed js link conditional at bottom of layout since we're no longer conditionally loading live edit js for cookbook pages 2013-10-29 18:04:29 -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
Cheng Lou 7d50ab600f ex for entry 7 2013-10-29 14:55:11 -04:00
Connor McSheffrey e3ec6f5292 Removed JS for live edit 2013-10-29 11:28:28 -07:00
Cheng Lou 9471287794 Merge branch 'feat-documentation-cookbook' of https://github.com/mcsheffrey/react into feat-documentation-cookbook 2013-10-29 14:23:17 -04:00
Cheng Lou cbec8c1a89 fix 2 more entries 2013-10-29 14:20:04 -04:00
Connor McSheffrey 4a7d8f628e Removed .js extension from Cookbook Introduction description 2013-10-29 11:09:57 -07:00
Connor McSheffrey b025e4c576 Merge pull request #16 from chenglou/feat-documentation-cookbook
new line at end of nac_docs; update to entry 4
2013-10-29 11:06:14 -07:00
Cheng Lou ee8fa3760d new line at end of nac_docs; update to entry 4 2013-10-29 14:02:20 -04:00
Connor McSheffrey efaba68663 Removed Q&A format 2013-10-29 10:42:47 -07:00
Connor McSheffrey 33effd31d5 Removing the grunt task generated live edit JS files since we're holding off on the inline edit feature for now 2013-10-29 10:15:45 -07:00
Cheng Lou 271e7d50cf better grammar 2013-10-29 10:15:45 -07:00
Cheng Lou c235ec7421 entry on false behavior 2013-10-29 10:15:45 -07:00
Connor McSheffrey 6e28818ba9 Remove cb prefix from cookbook entries since they're already in /cookbook/ directory 2013-10-29 10:15:45 -07:00
Connor McSheffrey 95f3caaaa4 removed cookbook prefix from filenames 2013-10-29 10:15:45 -07:00
Connor McSheffrey a7dd6e7c70 better regex for filename 2013-10-29 10:15:45 -07:00
Connor McSheffrey 30ab347b78 undo changes to extractCode, using grunt task instead 2013-10-29 10:15:45 -07:00
Connor McSheffrey 9585c407e2 added function that write to the output html file 2013-10-29 10:15:45 -07:00
Connor McSheffrey 9efd1f5e9b added seperate cookbook layout (since URL base of next/prev is hardcoded in layout), added next/prev yaml meta to each cookbook entry until I can find a way of generating them dynamically 2013-10-29 10:15:45 -07:00
Connor McSheffrey 21c5c2a54e update cookbook nav 2013-10-29 10:15:45 -07:00
Cheng Lou a970957eef remove entry 13 jquery animation; react has animation 2013-10-29 10:14:21 -07:00
Cheng Lou 119e29ff1d one single child in ternary 2013-10-29 10:14:21 -07:00
Cheng Lou 7db760427c add lib integration entry; tweak 1 sentence 2013-10-29 10:14:20 -07:00
Cheng Lou 6d2ea9a200 ajax ex 2013-10-29 10:14:20 -07:00
Cheng Lou 0475834470 fix all links to point to /react as root 2013-10-29 10:14:20 -07:00
Cheng Lou 48f1ee4940 change some wording, add tip for events entry
- No need to mention React, you know you're working with it =).
- Wrap code elements in back ticks, so that they get the "box" styling for md.
- You'd want the snippet to work inside the live editor, so you need to `renderComponent`. As per wiki specification, the DOM element on which to mount is `mountNode`, just like on the front page.
- Don't forget the JSX pragma, or else your `render` fails.
- Nitpick: empty line after the end of md.
- No need for jQuery reference since
  1. The general mood around React is that you don't need jQuery.
  2. The syntax' still clear without jQuery.
  3. We're doing a jQuery integration entry =).
- `getInitialState` was absent.
- You don't need `componentWillMount` here. fetch them in `getInitialState`.
- The non-spoken convention seems to call the event handler `"handle" + eventName`. So `handleResize` clearly indicates it's a `resize` handler while `updateDimensions` might do something else. This latter name might actually be better under circumstances where you use call the method directly somewhere, but since we removed the only direct usage in `componentWillMount` this is fine.
- Went OCD again and tried to keep the code short. `width` is enough of a demo. Removed `height`.
- Distinguish between DOM events and React events. Wish we go full React events in a near future.
2013-10-29 10:14:20 -07:00
Cheng Lou fb5f69f44e modify some wording 2013-10-29 10:14:20 -07:00