Paul O’Shannessy
0dccf64c67
Sync upstream modules
2014-10-10 10:40:18 -07:00
Paul O’Shannessy
5d127eaa49
Merge pull request #2316 from zpao/devtoolsmarker
...
Look for devtools global hook
2014-10-09 17:00:06 -07:00
Paul O’Shannessy
540731b7a8
Merge pull request #2002 from zpao/rename-renderComponent
...
React.renderComponent -> React.render
2014-10-09 16:41:37 -07:00
Paul O’Shannessy
1c86f5836a
Codemod deprecated API usage away
2014-10-09 16:41:03 -07:00
Paul O’Shannessy
9b1fa914fa
React.renderComponent -> React.render
...
Also rename all the associated render methods and adds deprecation
notices.
2014-10-09 16:41:03 -07:00
Paul O’Shannessy
436c6c2db7
Merge pull request #2310 from tmcw/list-require-attribute
...
Require list property to be accessed as an attribute
2014-10-09 11:29:59 -07:00
Paul O’Shannessy
6ddf8de5ae
Look for devtools global hook
...
It doesn't exist yet, but it could.
This also ensures we actually do our polyfill checks in *all* browsers,
not just Chrome.
2014-10-09 11:24:48 -07:00
Sebastian Markbåge
36b091bc44
Merge pull request #2308 from sebmarkbage/dropdocblock
...
Drop the @jsx docblock from unit tests
2014-10-08 15:24:18 -07:00
Tom MacWright
688f64c5c8
Require list property to be accessed as an attribute
2014-10-08 17:49:05 -04:00
Paul O’Shannessy
18209a1112
Merge pull request #2304 from zpao/rm-server-rendering-deprecation-notice
...
Update ReactServerRendering for the modern world
2014-10-08 13:09:01 -07:00
Paul O’Shannessy
8faca765e1
Update ReactServerRendering for the modern world
...
* ReactComponents aren't really the thing we need, ReactElements are
* Remove the deprecation notice that we've had in there for a long time
Test Plan: build, jest
2014-10-08 12:52:59 -07:00
Paul O’Shannessy
fe32477d97
Merge pull request #2306 from zpao/cleanup-textcomponent-dep
...
Remove ReactBrowserComponentMixin dependency from ReactTextComponent
2014-10-08 12:48:23 -07:00
Sebastian Markbage
348af57842
Drop the @jsx docblock from unit tests
...
This is no longer necessary in our transforms.
2014-10-08 12:46:45 -07:00
Sebastian Markbåge
85597bf3aa
Merge pull request #2303 from sebmarkbage/dropmerge
...
Use Object.assign instead of merge, mergeInto, mixInto and copyPropertie...
2014-10-08 12:10:08 -07:00
Sebastian Markbage
096360db03
Use Object.assign instead of merge, mergeInto, mixInto and copyProperties
...
This makes it easier to contribute without having to learn a bunch of
slightly different helpers and remember their slightly different
signatures and semantics.
We'll probably start using ES7 spread properties instead of merge in the
future when at least one more transpiler supports it.
2014-10-08 11:32:40 -07:00
Paul O’Shannessy
f2f4006ff6
Remove ReactBrowserComponent dependency from ReactTextComponent
...
It's no longer used as of #1598 , which just missed the require.
Test Plan: build, jest
2014-10-08 11:29:45 -07:00
Paul O’Shannessy
c0c90c0050
Merge pull request #2305 from sebmarkbage/missingrename
...
Rename ReactDescriptor followup
2014-10-08 10:54:57 -07:00
Sebastian Markbage
5541842284
Renamed ReactDescriptor-test
...
I forgot to rename the test.
2014-10-07 23:44:02 -07:00
Paul O’Shannessy
9ef2b4e5d9
Merge pull request #2252 from syranide/htmlmanifest
...
Add manifest to HTMLDOMPropertyConfig
2014-10-07 15:29:57 -07:00
Paul O’Shannessy
33d2b5e8ff
Merge pull request #2238 from syranide/noclassid
...
Remove superfluous classID from DOMAttributeNames
2014-10-07 15:26:19 -07:00
Paul O’Shannessy
8883d0f818
Merge pull request #2276 from spicyj/asap
...
Rename ReactUpdates.setImmediate to 'asap'
2014-10-07 14:27:00 -07:00
Sebastian Markbåge
f48954d8a3
Merge pull request #2300 from sebmarkbage/descriptorstoelements
...
Renamed Descriptor -> Element
2014-10-07 13:44:44 -07:00
Sebastian Markbage
8f1657bba6
Renamed Descriptor -> Element
...
We've decided on a new naming convention for ReactDescriptor. It's now
called ReactElement, which is a subset of the ReactNode union type.
2014-10-07 13:41:51 -07:00
Sebastian Markbage
7f9b1d18d1
Start warning when React.DOM.x is passed into JSX
...
React.DOM is becoming helper factories to generate ReactElements. They're not
classes. It will be ok to call them directly as functions, but not to use them
where a class is expected.
2014-10-07 10:49:18 -07:00
Sebastian Markbage
15a0c8920e
Don't use React.DOM
...
I grepped for uses of React.DOM. This is going to be a set of helper functions
to generate ReactElements without JSX.
They're not classes so they cannot be used where a React class is expected.
Since we always use JSX, we should have no internal use for these helpers.
We can use strings instead.
2014-10-07 10:49:18 -07:00
Sebastian Markbage
b2dbccf9a2
Rename lower case variables in JSX to upper case
...
We're trying to move to a convention where lower-case variables on JSX are always HTML/SVG tags rather than variables in scope. See:
http://fb.me/react-jsx-lower-case
Therefore, this diff renames existing uses to upper case variables.
This throws an error on all these files, so I manually go rename all the variables. I then run lint to ensure that the rename doesn't leave any undeclared variables.
2014-10-07 10:48:57 -07:00
Sebastian Markbage
c4658c1728
Update React JSX Transforms
...
* Extract JSXDOM into separate transform
* Rename lower case variables in JSX to upper case
* Drop React.DOM docblock, use string tags instead
2014-10-07 10:48:57 -07:00
Sebastian Markbåge
1a1104f56f
Merge pull request #2287 from sebmarkbage/stringelements2
...
Use strings as the type for DOM elements
2014-10-03 10:49:31 -07:00
Sebastian Markbage
3aaccd2dc9
Use strings as the type for DOM elements
...
This makes ReactDOM a simple helper for creating ReactElements with the string tag as the type. The actual class is internal and created by instantiateReactComponent. Configurable using injection.
There's not a separate class for each tag. There's just a generic ReactDOMComponent which could take any tag name.
Invididual tags can be wrapped. When wrapping happens you can return the same tag again. If the wrapper returns the same string, then we fall back to the generic component. This avoids recursion in a single level wrapper.
2014-10-02 23:05:11 -07:00
Ben Alpert
a8fff93971
Rename ReactUpdates.setImmediate to 'asap'
...
Per https://github.com/facebook/react/pull/1554#issuecomment-57243842 .
Test Plan: jest
2014-09-29 17:37:13 -07:00
Paul O’Shannessy
35764c5ffb
[docs] Use subitem in new nav generation
...
(cherry picked from commit 995d0e588b )
2014-09-29 13:48:25 -07:00
Paul O’Shannessy
57de1b07d0
Merge pull request #2254 from jgable/spellingFix
...
Spelling fix for "Testing Flux Applications"
2014-09-26 23:11:42 -07:00
Paul O’Shannessy
3888b97433
Merge pull request #2219 from pablolmiranda/master
...
Creates a getMeasurementsSummaryMap in ReactDefaultPerf
2014-09-26 17:56:07 -07:00
Paul O’Shannessy
a37dcbb8e0
Merge pull request #2208 from wincent/typo-fix-03
...
Fix a comment typo
2014-09-26 17:55:10 -07:00
Paul O’Shannessy
0383534094
Merge pull request #2202 from syranide/noscroll
...
Remove non-attribute scrollLeft and scrollTop from HTMLDOMPropertyConfig
2014-09-26 17:54:49 -07:00
Paul O’Shannessy
778ca2f862
Merge pull request #1598 from syranide/nogettext
...
Un-mixin ReactBrowserComponentMixin from ReactTextComponent
2014-09-26 17:54:32 -07:00
Paul O’Shannessy
c14b3a1b13
Merge pull request #1520 from syranide/ediblechildren
...
Warn against contentEditable with children props
2014-09-26 17:54:24 -07:00
Jacob Gable
0b3c0ebced
Spelling fix
...
- Puting -> Putting
2014-09-26 12:42:58 -05:00
Andreas Svensson
3de80ec4ba
Add manifest to HTMLDOMPropertyConfig
2014-09-26 16:45:33 +02:00
fisherwebdev
65c1834059
Merge branch 'zpao-rm-flux-docs'
2014-09-26 07:05:02 -07:00
fisherwebdev
f45d753486
Merge pull request #2236 from zpao/rm-flux-docs
2014-09-26 07:03:37 -07:00
Paul O’Shannessy
6c19040d24
Point to Flux site for Flux docs
...
This doesn't actually remove the pages, just the main content. Sidebar
items now link offsite. The pages doesn't automatically redirect, but we
could do that if we really wanted.
Fixes #2229
2014-09-25 12:34:22 -07:00
Bill Fisher
ef327fcb23
Merge pull request #2240 from christianalfoni/patch-1
...
Update flux-todo-list.md
2014-09-25 08:33:02 -07:00
Bill Fisher
2f30b2648c
Merge pull request #2237 from markhovskiy/patch-1
...
fix typos in "Testing Flux Applications"
2014-09-25 08:29:13 -07:00
Christian Alfoni
1b6a3d5215
Update flux-todo-list.md
...
You have to instantiate a Dispatcher to use it, not just grab the prototype or it will fail when trying to grab instance properties like: this.$Dispatcher._callbacks.
2014-09-25 11:54:52 +02:00
Andreas Svensson
cac45631c3
Remove superfluous classID from DOMAttributeNames
2014-09-25 10:46:29 +02:00
Oleksii Markhovskyi
5493b63b44
fix typos
2014-09-25 09:54:35 +02:00
Paul O’Shannessy
4f27dc30ad
Merge pull request #2228 from XuefengWu/patch-1
...
add tip for the important jsx convention
2014-09-24 15:35:36 -07:00
Bill Fisher
6f54ed71da
Merge pull request #2234 from fisherwebdev/master
...
[blog] testing flux applications
2014-09-24 13:08:45 -07:00
fisherwebdev
9952a54026
[blog] testing flux applications
2014-09-24 12:35:39 -07:00