Paul O’Shannessy
ca930efa7c
Upgrade (explicitly) grunt
...
They deprecated the use of some packaged modules and suggest using those modules
directly. http://gruntjs.com/blog/2013-11-21-grunt-0.4.2-released
Lodash was the only use we had.
2014-01-17 18:00:40 -08:00
Paul O’Shannessy
9558285f09
Update other dependencies
2014-01-17 18:00:40 -08:00
Paul O’Shannessy
c5f0e14985
Update browserify
...
Also update bundle.transform call site, which now takes options
2014-01-17 18:00:40 -08:00
Ben Alpert
ea711f1d62
Simplify live editor execution logic
2014-01-17 17:42:53 -08:00
Ben Alpert
4440486a24
Properly clear live editor on JSX compile failure
2014-01-17 17:42:40 -08:00
Nick Thompson and Paul O’Shannessy
0d2510ad9c
Add span property to React DefaultDOMPropertyConfig
...
So that the `span` attribute on <colgroup> tags isn't swallowed by
React.
2014-01-17 17:17:31 -08:00
Tim Yung and Paul O’Shannessy
79beb71d69
Fix ChangeEventPlugin Dependencies
...
When React moved to attaching top-level event listeners on-demand, not all of the dependencies for `ChangeEventPlugin` were set. This led to `onChange` events not firing under certain circumstances. For example, listening to `onChange` on a checkbox will not work because it relies on `onClick` (unless something else on the page was listening to `onClick`).
2014-01-17 17:17:31 -08:00
Cheng Lou
d489637a4f
Merge pull request #931 from spicyj/master
...
Update homepage for new JSX/JS editor
2014-01-17 16:56:40 -08:00
Ben Alpert
2ac36178c6
Update homepage for new JSX/JS editor
2014-01-17 16:46:50 -08:00
Paul O’Shannessy
487f633643
Normalize line endings
2014-01-17 16:28:32 -08:00
Paul O’Shannessy
8abca77381
.gitattributes to ensure LF line endings when we should
2014-01-17 16:25:53 -08:00
Cheng Lou
71b585325c
docs add jsx->js tab to live editors
2014-01-17 15:49:59 -08:00
Sebastian Markbåge
a05cef4a40
Merge pull request #852 from spicyj/no-store-mount-image
...
Don't store mount image on component instance
2014-01-17 15:44:57 -08:00
Cheng Lou
4f53f58754
docs fix back link in Examples
2014-01-17 15:21:49 -08:00
Paul O’Shannessy
ef4bda326e
Merge pull request #822 from chenglou/setstate
...
better error for bad setState arguments and mergeHelpers
2014-01-17 13:05:06 -08:00
Pete Hunt
804280275b
Merge pull request #928 from nick-thompson/componentWillMount-descrip
...
Clarify componentWillMount behavior
2014-01-17 12:46:47 -08:00
Nick Thompson
c2d57dff4b
Clarify componentWillMount behavior
2014-01-17 12:44:21 -08:00
Christopher Chedeau
2562813c63
Document isMounted
...
Text from @petehunt
2014-01-16 10:08:53 -08:00
Jeff Morrison and Paul O’Shannessy
89819de4f2
Kill last remaining use of $ in React
...
It's only used here, so let's just inline this and get rid of the additional module.
Also it will make people like this guy happy: https://github.com/facebook/react/issues/900
(of course he might be even more happy if he wasn't using MS TFS....but that's a much bigger diff, and not one I can write...)
2014-01-15 16:46:11 -08:00
Alex Zelenskiy and Paul O’Shannessy
b5f905523b
Adding 'scope' to list of standard html attributes in react
...
scope is used for screen readers, so it would be nice to have. Documentation here: http://www.w3.org/TR/WCAG20-TECHS/H63
2014-01-15 16:44:28 -08:00
Isaac Salier-Hellendag and Paul O’Shannessy
4bdea53d6e
Add topContextMenu to the event dependencies for SelectEventPlugin
2014-01-15 16:43:41 -08:00
Christopher Chedeau and Paul O’Shannessy
9ade3c26d3
Introduce PropTypes.shape
...
This diff introduces PropType.shape which lets you type an object. PropType.object was already defined and since it isn't a function I couldn't really overload the meaning to also accept a type list. Instead of doing hackery, I decided to name it `shape`.
An example where this could be used is style:
```
propTypes: {
style: PropTypes.shape({
color: PropStyle.string,
fontSize: PropTypes.number
})
}
```
2014-01-15 16:42:04 -08:00
Cheng Lou and Paul O’Shannessy
0906d282ec
throw when using component/component class as mixin
...
throw invariant error to help people new to mixins, so that they don't get misled into trying to mixin components into another component
2014-01-15 16:41:45 -08:00
Paul O’Shannessy
8ca62bd022
[docs] Remove commented out ghbtns
2014-01-15 11:40:36 -08:00
Paul O’Shannessy
a69f98b834
[docs] Add timezone to _config
...
This way we hopefully won't churn the feed when genereated in
a different time zone (eg France).
2014-01-15 11:14:15 -08:00
Paul O’Shannessy
e1f4357ff7
Remove stray "117", combine lines in polyfill docs
2014-01-15 11:08:10 -08:00
Pete Hunt
615dedc3e2
Merge pull request #881 from spicyj/checkbox-not-checked
...
"checkbox" not "checked"
2014-01-15 11:04:36 -08:00
Pete Hunt
94727f8223
Merge pull request #897 from spicyj/gh-208
...
Wrap _performComponentUpdate call in try/finally
2014-01-15 10:38:26 -08:00
Christopher Chedeau
a821f03cf4
Merge pull request #892 from rtfeldman/update-shim-docs
...
Mention need for `es5-sham.js` in docs
2014-01-15 09:15:59 -08:00
Richard Feldman
c3a2ea2256
Rewrite Older Browsers polyfill section for clarity.
2014-01-14 21:59:53 -08:00
Timothy Yung
977b60c1ed
Fix "Uncontrolled Components" documentation
2014-01-14 21:13:27 -08:00
Ben Alpert
091534c376
Wrap _performComponentUpdate call in try/finally
...
Fixes #208 . If you attempt a state update with a bad state then the render will fail (and the DOM won't change) but if you switch back to a valid state later then it'll rerender properly.
2014-01-14 20:30:07 -08:00
Pete Hunt
17de85689e
Merge pull request #895 from spicyj/zomgperf
...
Make findComponentRoot faster with more nodeCache
2014-01-14 18:58:54 -08:00
Paul O’Shannessy
b131da3869
Merge pull request #884 from spicyj/tut-datatype
...
Add dataType to all $.ajax calls for consistency
2014-01-14 18:48:05 -08:00
Ben Alpert
d96c6914c7
Make findComponentRoot faster with more nodeCache
...
This is an alternative, less-invasive, fix for #891 .
Test Plan:
On http://jsbin.com/OqOJidIQ/2/edit , got timings like
[75, 56, 30, 36, 27, 27, 28, 32, 27, 27, 28, 31]
instead of the old
[75, 729, 46, 32, 28, 34, 26, 27, 27, 30, 26, 26].
I also added a counter to getID and saw it was called 3014 times instead of the old 636264. (3014 is the number of nodes (3000) plus 3 calls that happen for the initial render and 1 for each of the 11 renders after that.)
2014-01-14 18:32:40 -08:00
Richard Feldman
f62ec225e0
Fix typo in docs.
2014-01-14 17:09:39 -08:00
Richard Feldman
9420e86480
Update docs to mention that you need both es5-shim.js and es5-sham.js to use React with IE8.
2014-01-14 16:57:27 -08:00
cpojer
c885abbf21
Allow null return values for functions to-be-merged.
2014-01-14 13:05:31 -08:00
Ben Alpert
eb2ac7f2f2
Add dataType to all $.ajax calls for consistency
...
Fixes https://groups.google.com/forum/#!topic/reactjs/WWA3ZqU6y4w .
2014-01-13 19:54:09 -08:00
Pete Hunt
d9b959884b
Merge pull request #878 from spicyj/mount-unmounted
...
Improve "Can only mount when umounted" message
2014-01-13 14:38:07 -08:00
Ben Alpert
5857eb884c
"checkbox" not "checked"
...
I can only assume this was a typo.
2014-01-13 14:28:56 -08:00
Ben Alpert
2f027fce2d
Improve "Can only mount when umounted" message
2014-01-13 13:26:24 -08:00
Isaac Salier-Hellendag and Paul O’Shannessy
ad70848e80
Use fallback data for composition events if necessary
2014-01-13 13:15:17 -08:00
Pete Hunt
c6f91ee6e8
Merge pull request #864 from spicyj/transition-key-set-faster
...
Rewrite mergeKeySets to be O(n) instead of O(n^3)
2014-01-13 12:50:42 -08:00
Christoph Pojer
ca1ecc626b
Merge pull request #876 from spicyj/cb-ctx
...
Always call callback in component context
2014-01-13 09:04:33 -08:00
Ben Alpert
1825f30353
Always call callback in component context
...
This brings these other call sites in line with line 67 of ReactUpdates.js:
callbacks[j].call(component);
2014-01-13 08:59:48 -08:00
Christoph Pojer
124096a9fe
Fix #845 , Trivial year change
...
This was accidentally pulled into gh-pages.
2014-01-13 08:56:20 -08:00
Christoph Pojer
ad6a982cd0
Fix #874 : Edit thinking-in-react
...
Accidentally pulled #874 into gh-pages.
2014-01-13 08:51:29 -08:00
Cheng Lou and Paul O’Shannessy
3d47177596
fix propTypes.any.weak test
...
accidentally copied over `.string.weak` and didn't change it
2014-01-12 20:47:16 -08:00
Pete Hunt
ddcab8be99
Merge pull request #871 from fernandoacorreia/jquery-mobile-example
...
jQuery Mobile React Example
2014-01-12 13:03:36 -08:00