Matt Harrison
c01f0a0487
Updated docs with new SVG elements
2014-01-05 12:18:30 +00:00
Matt Harrison
c4d918aca0
Added support for 4 extra SVG tags: stop, defs, linearGradient, radialGradient
2014-01-05 11:17:04 +00:00
Daniel Lo Nigro
ae9188db50
Change “not allowed” back to “discouraged” since you technically *can* use props called class or for…
2014-01-04 23:33:02 -08:00
Daniel Lo Nigro
202a3f184d
Add link to HTML to JSX converter to “JSX In Depth” page
2014-01-04 23:25:28 -08:00
Christopher Chedeau
605b42e622
Merge pull request #811 from xixixao/issue793
...
Document displayName
2014-01-04 10:41:56 -08:00
xixixao
ee0a4acfac
Document displayName
2014-01-04 17:34:16 +01:00
Pascal Hartig
e92d769a50
Add gulp-react to Helpful OSS Projects
...
Add @sindresorhus' JSX task for Gulp to the "Helpful Open-Source Projects" section of the tooling integration docs.
2014-01-04 11:20:45 +01:00
Ben Alpert
33dcf8a0b5
Set currentTarget on synthetic events
...
Fixes #658 , fixes #659 .
2014-01-04 00:27:11 -07:00
SanderSpies
80d7d2d0f8
Listen to events on demand
...
Fixes #381
This is a squashed version of https://github.com/facebook/react/pull/462
2014-01-03 23:09:59 -08:00
Ben Alpert
309a88bcf6
Prefer textContent to innerText
...
Fixes #807 .
2014-01-04 00:01:03 -07:00
Pete Hunt
a575e93ecd
Merge pull request #806 from spicyj/patch-4
...
Fix typo
2014-01-03 22:19:35 -08:00
Ben Alpert
ea40a6aedd
Fix typo
2014-01-03 23:19:04 -07:00
Pete Hunt
047e962a55
Merge pull request #805 from spicyj/docs-mention-react-art
...
Mention react-art where we talk about SVG
2014-01-03 22:17:51 -08:00
Ben Alpert
fdfd7c1853
Mention react-art where we talk about SVG
2014-01-03 23:15:50 -07:00
Ben Alpert
be75e3be66
Remove mentions of browserify in examples
2014-01-03 22:58:51 -07:00
Timothy Yung
c11d6d79f5
Merge pull request #721 from spicyj/change-bubble-ie
...
Make controlled components and bubbling work in IE
2014-01-03 18:10:16 -08:00
Nick Thompson
d270e2b1c7
Don't add displayName in transform if already defined
...
This ensures we don't add displayName in the transform if it's already been
defined. This is especially important when in strict mode, where duplicate
properties in an object is an exception.
2014-01-03 16:07:10 -08:00
Christopher Chedeau
e3e24500ae
Merge pull request #795 from philix/master
...
Add jsx-requirejs-plugin to the tooling-integration page
2014-01-03 11:09:59 -08:00
Felipe Oliveira Carvalho
86f2dbe55d
Remove the require-jsx plugin from the tooling-integration page
...
In favor of the r.js friendly jsx-requirejs-plugin
2014-01-03 16:03:42 -03:00
Felipe Oliveira Carvalho
344b5998a8
Add jsx-requirejs-plugin to the tooling-integration page
2014-01-03 15:45:03 -03:00
Andreas Svensson
4de2d39f63
Fix WheelEvent incorrectly inverting sign of deltaY
2014-01-03 19:09:09 +01:00
Andreas Svensson
7264cbcdfb
Further cleanup of isEventSupported
2014-01-03 19:02:20 +01:00
Jeff Morrison
1b67ac90f2
Make sure the mock is cleared in the EventEmitter test
2014-01-02 20:09:50 -08:00
Isaac Salier-Hellendag
29190a2c79
Support clipboardData in IE
...
Use the `clipboardData` object available on `window`, if it's not available on the event object. This allows us to support including the `clipboardData` in cut/copy/paste events in IE.
2014-01-02 20:05:07 -08:00
Christoph Pojer
bcfb476366
More tests for 77697f26e3
2014-01-02 20:05:03 -08:00
Ben Newman
1ee7f8131c
Let components specify tag for ReactTestUtils.mockComponent to use.
...
If you're writing a test that involves a mocked component that normally
returns a `<li>` tag from its `render` method as the root element, mocking
it with a dummy `<div>` probably won't work, so you'll want to set
MyListItemComponent.mockTagName = 'li';
The change to the `.mockImplementation` line makes sense because
`ConvenienceConstructor` is more or less synonymous (for these purposes)
with the wrapper that was previously used:
function() {
// This `this` used to be `null`, technically, but
// ConvenienceConstructor doesn't pay attention to `this` anyway.
return ConvenienceConstructor.apply(this, arguments);
}
2014-01-02 20:03:55 -08:00
Ben Newman
a00e4c840c
Support ReactTestUtils.mockComponent.
2014-01-02 20:03:40 -08:00
Sebastian Markbage
cbefc5a968
Add display names to controlled components
...
These show up as Unknown in the DevTools. They also wrap a native component,
so they show up double.
2014-01-02 20:03:26 -08:00
Fabio Costa
f3e774559f
adding warning about the lack of support for onScroll on IE8
...
Adding `console.warn` about the lack of support for `onScroll` event on IE8
Related to this issue on github https://github.com/facebook/react/issues/631
2014-01-02 20:01:33 -08:00
Pete Hunt
1733d42ded
Rework ReactRootIndex generation
...
This had a higher probability of collision than originally thought (bad math). This makes the strategy injectable and provies a
no-collision version on the client and an unlikely-to-collide version on the server.
2014-01-02 20:00:30 -08:00
Pete Hunt
cc005668b5
cloneWithProps()
...
what if you want to change the props of a child? This is my first attempt which lets you clone a child and transfer some custom props to it.
There is a fundamental issue with refs here. Since the component is cloned the ref will be broken. And since we can clone multiple times, it might not make sense to support repairing refs.
2014-01-02 19:46:50 -08:00
Pete Hunt
5661d5168e
Add svg polygon
2014-01-02 19:45:55 -08:00
Ben Alpert
fb8277c819
Set target properties explicitly for enter/leave
...
Fixes #785 .
2014-01-02 17:03:11 -07:00
Ben Newman
5aae5a7b1d
Merge pull request #783 from benjamn/upgrade-commoner
...
Upgrade commoner build tool to v0.8.12.
2014-01-02 12:09:26 -08:00
Christopher Chedeau
acf0c5c646
Merge pull request #784 from vjeux/react_dev_tools
...
React Chrome Developer Tools
2014-01-02 12:04:53 -08:00
Vjeux
e915294b68
React Chrome Developer Tools
2014-01-02 21:04:09 +01:00
Ben Newman
1755d43add
Upgrade commoner build tool to v0.8.12.
...
Fixes #394 .
Fixes #615 .
2014-01-02 14:54:13 -05:00
Ben Newman
04ad3bfcc3
Merge pull request #725 from cpojer/getInitialState-invariant
...
Add invariant to check getInitialState return value. Fixes #397 .
2014-01-02 06:59:50 -08:00
Christopher Chedeau
a78f6f7f94
Merge pull request #779 from chenglou/live-err
...
docs better error display for live editor and JSX compiler
2014-01-01 19:58:26 -08:00
Cheng Lou
f0b5219df9
docs better error display for live editor and JSX compiler
2014-01-01 19:41:08 -05:00
Christopher Chedeau
3396654a6f
Merge pull request #775 from chenglou/doc-fix
...
docs tips fix small typo and code
2014-01-01 14:05:21 -08:00
Cheng Lou
e244df510d
docs tips fix small typo and code
2014-01-01 15:28:44 -05:00
Ben Alpert
7a9e5443b7
Don't get selection if no active element
...
Fixes #694 .
Previously, it could be that there was an active element that was removed in between mousedown and mouseup.
2013-12-31 17:27:05 -07:00
Ben Alpert
261926303d
Remove sometimes-confusing console error
...
Fixes #767 . This essentially reverts 738de8c .
We could store some sort of flag to silence the console error here but since we've made significant improvements in markup wrapping, this error is fairly rare now. We'll also have validation of node structure soon in #735 .
2013-12-31 13:37:15 -07:00
Christopher Chedeau
e91a8a1bc3
Merge pull request #765 from spicyj/editorconfig-80
...
.editorconfig: Set line length to 80
2013-12-31 12:22:14 -08:00
Ben Alpert
3defe88192
.editorconfig: Set line length to 80
...
And alphabetize properties.
2013-12-31 12:59:06 -07:00
Ben Alpert
7675611e5f
Add source map support to browser transformer
2013-12-31 12:03:34 -07:00
Pete Hunt
9a4f011f6c
Merge pull request #763 from spicyj/gh-762
...
Add info about dev vs. prod builds
2013-12-31 09:57:10 -08:00
Ben Alpert
c877451887
Add info about dev vs. prod builds
...
Also moved the dev builds first because that's what most people will want.
2013-12-31 10:35:49 -07:00
Christopher Chedeau
96782fc836
Merge pull request #755 from spicyj/cm-scroll
...
Upgrade codemirror and enable line wrapping
2013-12-30 20:56:59 -08:00