Jeff Morrison
db04043eaa
Merge pull request #480 from syranide/whitespace
...
JSX whitespace coalescing rules
2014-01-23 12:32:57 -08:00
Paul O’Shannessy
38491c7c93
Merge pull request #952 from jeanlauliac/patch-1
...
Update broken link in 'why react' article
2014-01-23 09:40:28 -08:00
Jean Lauliac
b872100be6
Normalize internal links in 'why react' article
2014-01-22 22:01:20 +01:00
Jean Lauliac
14cb99c9aa
Update broken link in 'why react' article
2014-01-22 21:53:36 +01:00
Andreas Svensson
c16b5659a0
Implement stricter whitespace rules
2014-01-22 21:00:10 +01:00
Pete Hunt
0af9c3ebe7
Merge pull request #748 from spicyj/private-getvalue
...
Change LinkedValueMixin to a util class
2014-01-22 10:54:13 -08:00
Ben Alpert
95a80591dd
Change LinkedValueMixin to a util class
...
This makes it clear that .getValue() is not a public API.
2014-01-22 09:57:59 -08:00
Paul O’Shannessy
f0b01d0faa
Merge pull request #885 from syranide/natext
...
Remove unnecessary 'NA'-fallback for getTextContentAccessor()
2014-01-21 17:22:48 -08:00
Paul O’Shannessy
1d1a790df0
Merge pull request #901 from syranide/80chars
...
Fix lines longer than 80 chars
2014-01-21 17:09:24 -08:00
cpojer
ca02a068b8
Update propTypes documentation.
2014-01-21 16:45:34 -08:00
cpojer
8b12670ef9
Perf Test for the propTypes change.
2014-01-21 14:05:38 -08:00
cpojer
2cac321b27
Change ReactPropTypes invariant's to console.warn.
2014-01-21 14:05:33 -08:00
Paul O’Shannessy
9c91546451
Merge pull request #918 from spicyj/npm-react-rec
...
Fix copying files to build/npm-react recursively
2014-01-21 13:03:57 -08:00
Paul O’Shannessy
494f6e9c34
Merge pull request #921 from spicyj/grunt-jsx-no-dev
...
Remove unused grunt jsx config options
2014-01-21 11:40:43 -08:00
Pete Hunt
e3248efe92
Merge pull request #934 from syranide/minid
...
Shortened generated "data-reactid"
2014-01-20 13:26:42 -08:00
Andreas Svensson
559cd46181
Shortened generated "data-reactid"
2014-01-20 22:03:25 +01:00
Ben Alpert
e931dba107
Merge pull request #731 from fabiomcosta/jsxtransform-filename
...
Adds filename to JSXTransform error messages
2014-01-20 12:18:37 -08:00
Fabio M. Costa
de7a92afa7
Updating error message to also show part of the code, making it easier to find the error
2014-01-20 11:57:35 -08:00
Fabio M. Costa
d829d1ab9b
Adding current page's url for inline code and code improvement
2014-01-20 11:57:34 -08:00
Fabio M. Costa
b1a949ed45
Adds the filename to JSXTransform error message, making it easier to debug JSX syntax errors.
2014-01-20 11:55:17 -08:00
Cheng Lou
4b392f19a8
Merge pull request #861 from andrewdavey/unitless-css-props
...
Unitless css props
2014-01-17 21:49:24 -08:00
Ben Alpert
ffc31ed77b
Merge pull request #914 from chenglou/jsx
...
tweak frontpage first example code
2014-01-17 18:27:51 -08:00
Paul O’Shannessy
df8d092609
Merge pull request #924 from zpao/update-deps
...
Update build dependencies
2014-01-17 18:01:43 -08:00
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
Cheng Lou
d8d4120614
[docs] Tweak frontpage first example and jsx-compiler example
2014-01-17 17:53:44 -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
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
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
Ben Alpert
703a29c0b2
Remove unused grunt jsx config options
...
Since 5466d0a063 , the `__DEV__` isn't used any more. I can't find anything that uses the `debug` flag either.
2014-01-17 02:02:47 -08:00
Ben Alpert
76a7e2de75
Fix copying files to build/npm-react recursively
...
The intention of the `npm-react/**/*` rule was to copy recursively but it would have flattened any nested directory structure. I changed the `build/modules` rule to copy recursively as well, which is necessary for `ReactTestUtils` to be able to require `test/mock-modules.js` successfully. (`ReactTestUtils` isn't included in a clean `npm-react` build currently but it will be in the future.)
This also makes running ART tests more practical.
2014-01-17 01:15:15 -08:00
Christopher Chedeau
2562813c63
Document isMounted
...
Text from @petehunt
2014-01-16 10:08:53 -08:00
Jeff Morrison
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
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
4bdea53d6e
Add topContextMenu to the event dependencies for SelectEventPlugin
2014-01-15 16:43:41 -08:00
Christopher Chedeau
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
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