Ben Alpert
93a782b40b
Use Babel to build React
...
Size comparison:
```
raw gz Compared to master @ 6ed98ec0c8
= = build/JSXTransformer.js
-15736 -3247 build/react-with-addons.js
+287 +7 build/react-with-addons.min.js
-14412 -2887 build/react.js
+274 +15 build/react.min.js
```
Differences mostly look to be various bits of whitespace that Babel ends up removing during its transforms (https://gist.github.com/spicyj/21ef31f4d95fb7a58daf ). In minified files, mostly additions of `"use strict";`.
2015-05-04 14:14:09 -07:00
Jim
6ed98ec0c8
Merge pull request #3794 from jsfb/fix-thinking-in-react-blog-post
...
Fixed jsfiddles broken on https. Fixes 3735.
2015-05-01 10:47:12 -07:00
Ben Alpert
9484d0fc39
Merge pull request #3795 from spicyj/batch-unmount
...
Batch updates within top-level unmount
2015-04-30 15:05:55 -07:00
Ben Alpert
36f3a2aaff
Batch updates within top-level unmount
...
Analogous change to #2935 .
2015-04-30 15:05:44 -07:00
Jim
34b99cc69e
Fixed jsfiddles broken from https conversion. Fixes 3735
2015-04-30 13:05:53 -07:00
Ben Alpert
a092b47be5
Merge pull request #3785 from iamdustan/addons
...
npm build: create addons directory that loads from lib. Closes #3780
2015-04-29 15:31:20 -07:00
Dustan Kasten
5cfb712088
npm build: create addons directory that loads from lib. Closes #3780
2015-04-29 18:25:36 -04:00
Ben Alpert
571c327438
Merge pull request #3786 from HurricaneJames/master
...
check that React renders the menuitem closing tag
2015-04-29 14:43:16 -07:00
James Burnett
d42bf671d2
check that React renders the menuitem closing tag
2015-04-29 17:32:56 -04:00
Ben Alpert
a56d0d6dc5
Merge pull request #3781 from spicyj/elval
...
Fix infinite recursion in browsers with iterators
2015-04-29 13:54:08 -07:00
Paul O’Shannessy
1427522151
Merge pull request #3784 from ef718/docs-punctuation
...
Add punctuation
2015-04-29 12:40:41 -07:00
Elaine Fang
50e974b5b6
Add punctuation
2015-04-29 11:07:48 -04:00
Ben Alpert
8cf226e442
Fix infinite recursion in browsers with iterators
...
My old code here didn't work properly -- for a string child, getIteratorFn would return an iterator that gave each character as its own string, and we'd attempt to loop over that too.
Tests now work in Chrome again.
2015-04-29 00:21:00 -07:00
Paul O’Shannessy
92e82c91a5
Merge pull request #3779 from katzoo/dry-quadratic-example
...
DRY quadratic formula example
2015-04-28 18:03:15 -07:00
katzoo
065f13a968
DRY quadratic formula example
2015-04-29 02:50:53 +02:00
Ben Alpert
1d8025258a
Merge pull request #3722 from spicyj/travis-rel-grunt
...
Use local `grunt` executable on Travis
2015-04-28 14:55:34 -07:00
Ben Alpert
e534e0730e
Use local grunt executable on Travis
...
Builds have been flaky lately. Maybe this will help?
2015-04-28 14:45:55 -07:00
Jim
49de80e692
Merge pull request #3767 from kubosho/patch-1
...
Use jQuery 2.1.3 (latest) to be up-to-date and consistent with other docs)
2015-04-28 06:42:52 -07:00
Shota Kubota
d376e12a9c
Fix differences a jQuery CDN URLs, fixes #3750 .
...
unify to `https://code.jquery.com/jquery-2.1.3.min.js `.
2015-04-28 22:27:46 +09:00
Jim
40119404b9
Merge pull request #3740 from jsfb/element-is-parent-of-render-result-test
...
Added unit test to verify that context treats the component doing a render() as the parent.
2015-04-27 16:11:39 -07:00
Ben Alpert
3b10a7b038
Add forgotten clipPath wrapper in getMarkupWrap
2015-04-27 15:39:39 -07:00
codesuki
e3cf48cd7f
Added support for SVG clipPath element and clip-path attribute
2015-04-27 15:37:23 -07:00
Jim
9a950e9a19
Added unit test to verify that context treats the component doing a render() as the parent.
2015-04-27 14:56:25 -07:00
Ben Alpert
d359319073
Merge pull request #3758 from spicyj/keys-keys-keys
...
Add key warning to nested collections
2015-04-27 14:51:30 -07:00
Ben Alpert
086636747f
Add key warning to nested collections
...
Also when reusing elements in multiple contexts -- before we were mutating each element to indicate its validity; now we mutate the array containing it (which we create, in the case of rest-arg children).
Fixes #2496 . Fixes #3348 .
2015-04-27 14:41:25 -07:00
Ben Alpert
adcb420414
Merge pull request #3757 from spicyj/es6
...
Add missing super() calls
2015-04-27 14:31:03 -07:00
Ben Alpert
2d1a24e8df
Add missing super() calls
...
Babel complains without these because it's invalid ES6.
2015-04-27 13:41:10 -07:00
Ben Alpert
8e9deff3cc
Merge pull request #3749 from VictorKoenders/master
...
unmountChildren was missing an Object.hasOwnProperty check (src/core/ReactChildReconciler.js)
2015-04-26 15:09:48 -07:00
Victor Koenders
ed4daba87d
src/core/ReactChildReconciler.js::unmountChildren was missing an Object.hasOwnProperty check
2015-04-26 13:54:16 +02:00
Cheng Lou
86dee966a4
Merge pull request #3747 from jayeszee/patch-1
...
Missing punctuations in comments.
2015-04-26 00:23:43 -04:00
Jack Zhang
f7a9a6c480
Missing punctuations in comments.
...
Added periods to two comment lines to ensure uniform format.
2015-04-25 20:50:30 -07:00
Cheng Lou
f6ae856797
Merge pull request #3739 from chenglou/style-mut-comments
...
Tweak style mutation warning, remove test comment
2015-04-24 15:08:24 -04:00
Cheng Lou
1df2b6f638
Tweak style mutation warning, remove test comment
2015-04-24 15:04:05 -04:00
Cheng Lou
288c7ed139
Merge pull request #2027 from chenglou/warn-style-mutation
...
Set up `style` mutation monitoring
2015-04-24 14:51:33 -04:00
Paul O’Shannessy
4dbccea975
Merge pull request #3734 from marocchino/update-korean
...
Update Translation to 0183f70
2015-04-23 23:03:47 -07:00
Shim Won
8d0937e60d
Update Translation to 0183f70
2015-04-24 09:15:46 +09:00
Ben Alpert
0183f70797
Merge pull request #3727 from spicyj/dsih
...
Relax dangerouslySetInnerHTML validation
2015-04-22 17:37:40 -07:00
mheiber
39442aaa84
Update cloneWithProps documentation
...
Updated documentation to reflect that using React.cloneElement is the new way to copy an element and preserve `key` and `ref`.
Fixes #3432 , closes #3447 .
2015-04-22 17:05:59 -07:00
Ben Alpert
7f02455220
Relax dangerouslySetInnerHTML validation
...
Fixes #3460 .
2015-04-22 16:59:50 -07:00
Ben Alpert
a171474348
Merge pull request #3429 from AoDev/patch-1
...
Add a note about react classe name convention
2015-04-22 16:11:56 -07:00
Jim
41348ba911
Merge pull request #3640 from jsfb/render-subtree-pass-context
...
Provide top level method for rendering subtree (passes context)
2015-04-22 14:29:06 -07:00
Jim
c93b4245cb
Provide top level method for rendering subtree (passes context)
2015-04-22 14:25:29 -07:00
Jim
1a5fe9fd13
Merge pull request #3723 from jsfb/fix-bad-homepage-link
...
Fix bad links in docs. Fixes #3654 .
2015-04-22 13:35:02 -07:00
Jim
d900541021
Fix bad links in docs. Fixes #3654 .
2015-04-22 13:17:39 -07:00
Ben Alpert
3c66b8f0f7
Merge pull request #3665 from mridgway/replaceHasOwnProperty
...
[performance] Replace hasOwnProperty in child processing with typeof undefined check
2015-04-22 11:21:38 -07:00
Scott Feeney
d235940037
Merge pull request #3716 from graue/optional-shallow-render-context
...
Shallow render components that define contextTypes
2015-04-22 10:54:40 -07:00
Paul O’Shannessy
5b42e895c1
Merge pull request #3691 from jonscottclark/patch-1
...
Add 'cache: false' to $.ajax when fetching comments (docs/tutorial)
2015-04-22 09:57:58 -07:00
Paul O’Shannessy
4f285b7ba0
Merge pull request #3676 from zpao/rm-withContext
...
Remove withContext from top-level API
2015-04-22 09:45:26 -07:00
Jon Scott Clark
f4a6644f4e
Fix line highlighting in code blocks due to addition of extra example code
2015-04-22 10:45:15 -04:00
Scott Feeney
df937af91c
Shallow render components that define contextTypes
...
You now no longer have to pass an undocumented extra argument to the
shallow renderer for rendering components with contextTypes to work.
Fixes #3696
2015-04-21 16:17:06 -07:00