Ben Alpert
796f8c353c
put/deleteListener take an instance, not an ID
...
This removes SimpleEventPlugin's dependency on ReactMount.getID.
2015-11-04 11:39:43 -08:00
Ben Alpert
d11ccd6956
Propagate events based on component tree, not IDs
2015-11-04 11:39:43 -08:00
Ben Alpert
f470cb88f8
Events: Pass native instances up until propagation
...
Next step: take advantage of having the native instances in EventPropagators instead of converting right back to IDs.
2015-11-04 11:39:43 -08:00
Ben Alpert
6d20556c78
Add functions to find the instance given a node
2015-11-03 17:03:40 -08:00
Ben Alpert
ce528457a4
ReactDOMComponentTree
...
New module! With this, we have a new module that uses the component tree to store DOM nodes. Most of the logic in this file relates to markup adoption -- if we were to drop that (along with server rendering) this file could just be a `return inst._nativeNode;`.
This works with useCreateElement only because we need to reference each node as it's created.
Events is now the only thing using ReactMount.getNode -- I'll introduce pointers back from the DOM nodes (and a `ReactDOMComponentTree.getInstanceFromNode`) and make that work.
2015-11-03 17:03:40 -08:00
Ben Alpert
5a7c273a1b
Always do useCreateElement for updates
...
Initial render can still be a markup string.
2015-11-03 17:03:40 -08:00
Ben Alpert
276ef737fe
Make ReactDOMComponent-test pass with useCreateElement
2015-11-03 17:03:40 -08:00
Ben Alpert
5becbe3f08
Remove obsolete tests with new tree-walking
2015-11-03 17:03:40 -08:00
Ben Alpert
19e2cf5ad5
Make ReactEmptyComponent-test not swallow logs
2015-11-03 17:03:40 -08:00
Kevin Robinson
45c612ed7a
Add additional secret property and build for react-dom-server
...
Update eslintrc, travis build and add task to Gruntfile
2015-11-03 16:39:58 -05:00
Jim
84af306044
Merge pull request #5372 from csbok/patch-1
...
Update getting-started.ko-KR.md
2015-11-03 03:44:31 -08:00
Ben Alpert
2858bca2e3
Merge pull request #5361 from ali/warn-on-missing-event-handlers
...
Warn on missing event handler properties
2015-11-02 20:23:20 -08:00
Ali Ukani
9ad4be0316
Warn on missing event handler properties
...
Fixes #3548 . Warns on properties that are case-insensitive matches for
registered event names (e.g. "onclick" instead of "onClick").
2015-11-02 23:13:20 -05:00
Ben Alpert
a4b5f2fffa
Merge pull request #5376 from spicyj/gh-4993
...
Test fixups after #4993
2015-11-02 18:27:25 -08:00
Ben Alpert
c802e9ede9
Test fixups after #4993
2015-11-02 18:26:52 -08:00
Ben Alpert
d2888798f0
Merge pull request #4993 from jsdf/shallow-render-lifecycle
...
Run all component lifecycle methods when shallow rendering
2015-11-02 18:16:55 -08:00
Ben Alpert
17289020f7
Merge pull request #5356 from rpominov/patch-1
...
fix shallowRenderer.getRenderOutput() return type in docs
2015-11-02 17:27:08 -08:00
Ben Alpert
5724fca7ae
Merge pull request #5358 from conorhastings/invariant-testutils-simulate-shallow-render
...
#5284 - Show a friendly error when using TestUtils.Simulate with shallow rendering
2015-11-02 17:22:07 -08:00
conorhastings
fbb8d2fe2d
Show a friendly error when using TestUtils.Simulate with shallow rendering
2015-11-02 20:14:26 -05:00
Paul O’Shannessy
b9371bc216
Merge pull request #5370 from zpao/babel6docs
...
Update docs for Babel 6
2015-11-02 16:58:17 -08:00
csbok
2b54e5417d
Update getting-started.ko-KR.md
...
correcting misspelled words
2015-11-03 09:56:41 +09:00
Paul O’Shannessy
bc3b32c968
[docs] Update tooling integration for more babel 6
2015-11-02 13:10:40 -08:00
Paul O’Shannessy
db7ea058e7
[docs] Update Getting Started for babel 6
2015-11-02 12:56:30 -08:00
Paul O’Shannessy
dbab71bbf4
Merge pull request #5350 from ludovicofischer/master
...
Correct Babel 6 command line usage instructions.
2015-11-02 11:42:44 -08:00
Ben Alpert
ff6714064f
adler32: Properly break loop into 4096-char blocks
...
I believe this was lost in translation in #4400 . Can't say I fully understand why this is significant at all though...
2015-11-02 11:29:48 -08:00
Paul O’Shannessy
72a11421d2
Merge pull request #5367 from spicyj/haste-manifest
...
Add package.json for react-haste package
2015-11-02 11:15:28 -08:00
Paul O’Shannessy
a82400faa2
Merge pull request #5366 from zpao/react-dom-peer-dep
...
Make React a peerDep of react-dom
2015-11-02 11:14:29 -08:00
Ben Alpert
d44c45f8a5
Add package.json for react-haste package
...
This will probably go away in a release or two.
2015-11-02 11:03:18 -08:00
Paul O’Shannessy
3c1c02394e
Make React a peerDep of react-dom
2015-11-02 10:19:04 -08:00
Roman Pominov
e9f931653d
fix shallowRenderer.getRenderOutput() return type in docs
2015-11-01 16:54:41 +03:00
Sergey Rubanov
57b0c8efd0
add Node 5 to devEngines
2015-11-01 04:55:33 +03:00
Ludovico Fischer
6e1f642273
Correct Babel 6 command line usage instructions.
...
The user should install the babel-cli package, see http://babeljs.io/docs/usage/cli/ .
2015-11-01 00:17:16 +01:00
Paul O’Shannessy
88bae3fb73
Merge pull request #5348 from hzoo/patch-2
...
add docs for babel 6
2015-10-31 12:11:26 -07:00
Henry Zhu
41fc5f21e5
add docs for babel 6
2015-10-31 14:34:20 -04:00
Jim
bbffc36534
Merge pull request #5344 from chicoxyzzy/update-rcc
...
maskedContext should not be instantiated as null
2015-10-30 18:23:55 -07:00
chico
8a9039891b
maskedContext should not be instantiated as null
2015-10-31 04:05:44 +03:00
Ben Alpert
c525732147
Merge pull request #5023 from spicyj/jsc-perf
...
Add rudimentary jsc perf-counters runner
2015-10-30 17:06:30 -07:00
Paul O’Shannessy
b5d90f8c6b
Merge pull request #5331 from tbroadley/typescript-test-windows
...
Fix for TypeScript test on Windows
2015-10-30 15:45:51 -07:00
Thomas Broadley
d77e161f99
use path library to normalize filepath
2015-10-31 07:38:47 +09:00
Jim
a2d26c82ea
Merge pull request #5093 from jimfb/avoid-children-to-string-coercion
...
Should not coerce children prop on custom elements to a string. Fixes #5088
2015-10-30 13:42:05 -07:00
Jim
0c790baf31
Merge pull request #5341 from zpao/domprop-integrity
...
Add integrity to HTML property config
2015-10-30 13:39:17 -07:00
Paul O’Shannessy
68eb1a6fb6
Add integrity to HTML property config
2015-10-30 13:35:51 -07:00
Jim
86fc94750a
Should not coerce children prop on custom elements to a string. Fixes #5088
2015-10-30 13:33:21 -07:00
Paul O’Shannessy
bd6417e24e
Merge pull request #5293 from chicoxyzzy/update-deps
...
update dependancies
2015-10-30 13:25:31 -07:00
Paul O’Shannessy
3d75a4234d
Merge pull request #5339 from jimfb/contributing-first-bug
...
Added a note about finding a good-first-bug
2015-10-30 12:10:22 -07:00
Jim
6fd7892a4d
Added a note about finding a good-first-bug
2015-10-30 11:05:49 -07:00
chico
38b80b5b37
update deps
2015-10-30 16:34:39 +03:00
Paul O’Shannessy
761921499c
Merge pull request #5049 from xelad1/patch-1
...
Fixed unclear wording in comment
2015-10-29 23:21:05 -07:00
Alex Dajani
aa6fcf902c
Fixed unclear wording in comment
...
Perhaps not understanding what "key a set a fragment..." is supposed to mean. Hopefully I'm not misreading this as a typo.
2015-10-29 23:20:18 -07:00
Paul O’Shannessy
c35b4384f7
Merge pull request #5235 from wincent/update-blog-syntax
...
Update syntax in older Relay blog post that may be causing confusion
2015-10-29 23:14:19 -07:00