Commit Graph

603 Commits

Author SHA1 Message Date
Timothy Yung 338ce603f9 Merge pull request #797 from spicyj/should-update
Fix cases where owner warning is shown
2014-01-09 18:50:21 -08:00
cpojer 95cb79a93e Remove CallbackRegistry 2014-01-09 16:58:48 -08:00
cpojer b713c2c696 Add PropTypes.component to demand a single React component. 2014-01-09 16:58:47 -08:00
Ben Alpert f5a48f1ff4 Fix cases where owner warning is shown
In b0431a5 I added the check in the wrong place which could cause the warning to be shown because of key changes rather than owner changes like the warning suggests.
2014-01-09 16:48:58 -08:00
Timothy Yung f47238be41 Merge pull request #803 from spicyj/gh-788
Use proper window object for iframe in enter/leave
2014-01-09 16:35:07 -08:00
Timothy Yung 851f08bdc2 Merge pull request #780 from syranide/newhasevent
Further cleanup of isEventSupported
2014-01-09 16:34:57 -08:00
Timothy Yung 68bac7fbf0 Merge pull request #778 from syranide/flipwheel
Fix WheelEvent incorrectly flipping sign of deltaY
2014-01-09 16:34:47 -08:00
Timothy Yung dea6063dc9 Merge pull request #771 from spicyj/gh-694
Don't get selection if no active element
2014-01-09 16:34:27 -08:00
Paul O’Shannessy 1f5c8d21d8 Merge pull request #786 from spicyj/gh-781
Fix potential memory leak when unmounting
2014-01-09 13:08:07 -08:00
Timothy Yung 2c93cd0267 Merge pull request #640 from spicyj/immutable-props-2
Don't mutate passed-in props, take 2
2014-01-09 12:52:58 -08:00
Ben Alpert 2716f38861 Spy on purgeID instead of unmountIDFromEnvironment 2014-01-08 21:48:48 -08:00
Ben Alpert e2f094614f Fix potential memory leak when unmounting
Fixes #781.
2014-01-08 21:43:52 -08:00
Paul O’Shannessy 0c3628cd8d Merge pull request #757 from spicyj/ng
Don't tack on EventPluginHub globally
2014-01-08 15:23:47 -08:00
Ben Alpert 1db788b62c Don't tack on EventPluginHub globally 2014-01-08 15:20:05 -08:00
Paul O'Shannessy 23ab30ff87 Revert textContent
Reverts 309a88bcf6 because this is causing
issues internally. I'll try to get a repro soon.
2014-01-07 21:10:03 -08:00
Pete Hunt b1597ab2d7 Warn for common forms misuse 2014-01-07 21:08:13 -08:00
Ben Alpert a2ecee5353 Use proper window object for iframe in enter/leave
Fixes #788.
2014-01-07 08:36:42 -08:00
Ben Alpert 657602135c Don't mutate passed-in props, take 2 2014-01-06 21:42:04 -08:00
Ben Newman 4f57515f91 Fix some odd spacing inconsistencies in ReactRenderDocument-test. 2014-01-06 21:13:25 -08:00
Sebastian Markbåge 59bd45d594 Merge pull request #772 from spicyj/gh-444
Set event type on enter/leave events
2014-01-06 20:10:26 -08:00
Sebastian Markbåge c28e1f24df Merge pull request #768 from spicyj/findcomponentroot-err
Remove sometimes-confusing console error
2014-01-06 18:57:18 -08:00
Tom Occhino ba6c82a326 Merge pull request #829 from spicyj/transitiongroup-null-child
Make ReactTransitionGroup work with a null child
2014-01-06 18:40:35 -08:00
Timothy Yung e23c06a60c Merge pull request #773 from spicyj/select-event-ff
Check for selection on keyup instead of deferring
2014-01-06 18:40:20 -08:00
Pete Hunt 70a0746e9f Fix react tests 2014-01-06 18:35:54 -08:00
Pete Hunt 1e980a146f Fix bug in cloneWithProps() 2014-01-06 18:35:54 -08:00
Paul O’Shannessy f9551d709e Merge pull request #808 from spicyj/prefer-textContent
Prefer textContent to innerText
2014-01-06 18:08:38 -08:00
Ben Alpert c75899f277 Make ReactTransitionGroup work with a null child 2014-01-06 17:40:50 -08:00
Ben Alpert 09c8ec51bf Check for selection on keyup instead of deferring
This is essentially what we do for the change event in IE8 and IE9 already.
2014-01-06 16:37:27 -08:00
Christopher Chedeau e9484adf65 Merge pull request #774 from spicyj/img-onload
Add support for onLoad event to <img />
2014-01-06 16:24:25 -08:00
Ben Alpert fb858a8fc2 Set event type on enter/leave events
Fixes #444.
2014-01-06 16:21:46 -08:00
Sebastian Markbåge 4f09a54a1d Merge pull request #741 from spicyj/flatten-nonull
Don't return null children from flattenChildren
2014-01-06 16:21:34 -08:00
Timothy Yung 8f2509e169 Merge pull request #789 from spicyj/gh-785
Set target properties explicitly for enter/leave
2014-01-06 16:16:35 -08:00
Ben Alpert 79c9025f17 Add support for onLoad event to <img /> 2014-01-06 16:16:21 -08:00
Christopher Chedeau 9454282bfc Merge pull request #819 from mtharrison/add-more-svg-tags
Added support for 4 extra SVG tags
2014-01-06 15:44:15 -08:00
Ben Alpert 808f60f8a0 Add back license header to invariant 2014-01-06 14:19:23 -08:00
Matt Harrison bd575eb7c8 Updated getMarkupWrap.js to include the new SVG elements 2014-01-06 21:48:40 +00:00
Paul O’Shannessy c2be8ba42d Sync vendored modules from upstream 2014-01-06 11:55:37 -08:00
Timothy Yung 627d7eb669 Merge pull request #754 from spicyj/over-and-out
Add onMouseOver and onMouseOut events
2014-01-06 10:28:54 -08:00
Tim Yung 182a237fa7 Separate Module for Key Normalization
This moves key normalization into its own module so that it can be re-used elsewhere.
2014-01-06 10:07:49 -08:00
Christoph Pojer 22ba8b67f1 Silence console.error in ReactDOMInput-test
This test is expected to throw but because of ReactErrorUtils.guard
which uses console.error in __DEV__ it also logged the invariant error
to the console. This change fixes it by temporarily stubbing out
console.error.

Fixes #531
2014-01-06 10:07:49 -08:00
Tim Yung e65726cd04 Cleanup ReactEventEmitter Variable Naming
Minor follow-up to 80d7d2d0f8.
2014-01-06 10:07:49 -08:00
Isaac Salier-Hellendag 1584aaf746 Change global to window in SyntheticClipboardEvent
Replace `global` reference with `window` in `SyntheticClipboardEvent`.
2014-01-06 10:07:49 -08:00
Pete Hunt 089a494a1f Forbid full-page rendering without server rendering
Final part of server rendering cleanup. We should only support full-page rendering when server rendering is involved since
otherwise it's slow and can crash browsers when you start adding and removing document roots. This diff removes the magic
innerHTML code (since that will be handled by the server rendering piece) and adds the right assertions and errors.

Because there's no longer a dangerous of accidentally nuking the whole page, I removed allowFullPageRender which is yet another
internal we no longer need to expose.
2014-01-06 10:07:48 -08:00
Pete Hunt 9b3342ed34 Throw when unmounting <html>, <head>, <title> or <body>
These are dangerous from a cross-browser perspective. I think supporting efficient reactive updates will be prohibitively
expensive and we'll never prioritize it. Instead of killing this capability entirely, let's just throw on the dangerous cases.
There will be a few follow-up diffs
2014-01-06 10:07:48 -08:00
Timothy Yung 2c1a25411f Merge pull request #747 from spicyj/currentTarget
Set currentTarget on synthetic events
2014-01-05 20:41:48 -08:00
Timothy Yung 13230a3044 Merge pull request #643 from spicyj/scroll-pos
Fix scrollLeft/scrollTop warning in latest Chrome
2014-01-05 20:41:35 -08:00
Matt Harrison c4d918aca0 Added support for 4 extra SVG tags: stop, defs, linearGradient, radialGradient 2014-01-05 11:17:04 +00: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