Paul O’Shannessy
4b2e89dd99
Add `npm run build`
...
It's a "shortcut" to `grunt build`
2015-01-21 17:23:36 -08:00
Sophia Westwood
a19966f2ea
Correctly highlight changed line in tutorial.
...
This excerpt adds the onSubmit handler to the form element, but the line was not highlighted as having been modified.
2015-01-21 17:15:31 -08:00
Greg Hurrell
76fe572a97
Fix inaccurate spec description
...
The string here was initially accurate, but got out of sync with reality
when the commit was revised (as 892e357fd5
).
2015-01-21 17:07:29 -08:00
Timothy Yung
892e357fd5
Merge pull request #2894 from yungsters/local-event-trap-mixin
...
Fix LocalEventTrapMixin for Bad Tree State
2015-01-21 15:34:32 -08:00
yungsters
a7aca51f1e
Throw for Misue of LocalEventTrapMixin
...
Summary:
If `getDOMNode()` returns null in `LocalEventTrapMixin`, `listener` will also be null and `accumulateInto` will throw. This changes `LocalEventTrapMixin` to throw a more helpful error message.
Test Plan:
Ran unit test successfully:
```
npm test LocalEventTrapMixin-test.js
```
2015-01-21 15:30:04 -08:00
Jim
6f44f6049e
Document justification for dangerouslySetInnerHTML, fixes #2256
...
Conflicts:
docs/_data/nav_tips.yml
docs/tips/17-children-undefined.md
2015-01-21 12:47:36 -08:00
Isaac Salier-Hellendag
972befe0b6
Merge pull request #2889 from salier/react-default-perf
...
Repair ReactDefaultPerf
2015-01-21 13:28:53 -06:00
amykyta
b8f3c7f7fb
Update 02.1-jsx-in-depth.md
2015-01-21 12:22:29 -05:00
Isaac Salier-Hellendag
de54d84051
Repair ReactDefaultPerf
...
Update ReactDefaultPerf to properly record component names.
2015-01-21 10:52:43 -06:00
Cedric Sohrauer
5f837074f9
adds a composite component for an iframe to handle load events
...
This is basically a copy of ReactDOMImg
2015-01-21 10:33:34 +01:00
Paul O’Shannessy
ce5346f2ce
Merge pull request #2884 from chenglou/fix-ex-source-map
...
Temporarily comment out bundle-collapser for JSXTransformer
2015-01-20 18:55:39 -08:00
Paul O’Shannessy
f9c393f4fb
Fix strict mode violoation in test
2015-01-20 18:26:51 -08:00
Cheng Lou
51d74ca36c
Temporarily comment out bundle-collapser for JSXTransformer
...
This will at least make the examples run while we fix the issue.
2015-01-20 20:27:59 -05:00
Paul O’Shannessy
06de3f31f0
Merge pull request #2875 from kchia/patch-2
...
Update 03-interactivity-and-dynamic-uis.md: correct typo
2015-01-20 16:42:27 -08:00
Paul O’Shannessy
0a62a04909
Merge pull request #2881 from camsong/master
...
Add Chinese translation to several pages.
2015-01-20 16:41:58 -08:00
Sebastian Markbage
a5657d213c
Fix lint
2015-01-20 14:40:19 -08:00
Paul O’Shannessy
c778e61da0
Fix ES6Class test so it runs in browsers
...
document.createElement throws an error if you don't pass it any
arguments. Neither PhantomJS nor jest (via jsdom at version jest is
using) behave as browsers do now so this went unnoticed.
2015-01-20 14:30:33 -08:00
Sebastian Markbåge
2d75b11097
Merge pull request #2808 from sebmarkbage/modernclasses
...
New class instantiation and initialization process
2015-01-20 14:28:40 -08:00
Sebastian Markbage
291a92c4a6
New class instantiation and initialization process
...
This allows state to be set up in the constructor instead of through
getInitialState. getInitialState is now considered part of "classic".
Therefore, they move into ReactClass's constructor.
As a consequence of this, we no longer have a mapping between the internal
representation and the public instance during the mounting process.
Because the constructor hasn't returned yet.
We used to have a special case for calling setState in getInitialState
which was just ignored. This makes that throw and the component is
considered unmounted during the construction phase.
2015-01-20 14:27:28 -08:00
Jim
f92967c886
Merge pull request #2853 from jsfb/warn-only-on-read
...
Eliminate context warnings when component isn't reading the conflicting context variable
2015-01-20 11:57:30 -08:00
Cam Song
1694aff89e
Add Chinese translation to 7 more pages.
...
Translate 'Note' to '注意' instead of '提示' to make it more sensible.
2015-01-20 00:15:16 +08:00
Hou Chia
9f18ccdce9
Update 03-interactivity-and-dynamic-uis.md: correct typo
...
My file change corrects a typo in the document.
Best,
Hou
2015-01-18 00:35:27 -08:00
Paul O’Shannessy
c6686768eb
Merge pull request #2874 from Carlsson87/patch-1
...
Update footer with correct year
2015-01-17 12:21:21 -08:00
Daniel Carlsson
4ffdbefaa2
Friends don't let friends look foolish on the internet
...
Updated your footer =)
2015-01-17 20:16:24 +01:00
Paul O’Shannessy
f656f1966e
Merge pull request #2297 from pedronauck/docs-namespace-in-jsx
...
Add a section at 'jsx-in-depth' talking about namespaced components
2015-01-16 16:21:22 -08:00
Paul O’Shannessy
4f50071de0
Merge pull request #2675 from af/topLevelAPIDocs
...
Top level api docs for createFactory
2015-01-16 13:18:28 -08:00
Paul O’Shannessy
d6aa588dfc
Merge pull request #2360 from beausmith/patch-1
...
Highlighted changed lines in examples
2015-01-16 13:10:00 -08:00
Paul O’Shannessy
31002e0cc1
Merge pull request #2707 from camsong/master
...
More Chinese Doc Translation
2015-01-16 13:06:40 -08:00
Paul O’Shannessy
1b85e611ad
Merge pull request #2734 from Minwe/master
...
add Forms and Event System docs Chinese translation
2015-01-16 13:06:12 -08:00
Paul O’Shannessy
d471fb4c0b
Merge pull request #2795 from chenglou/tips-lib
...
[Docs] Tip on integration with other libraries
2015-01-16 13:05:43 -08:00
Paul O’Shannessy
69d40d1be3
Merge pull request #2824 from zpao/docs-tutorial-server
...
[docs] Talk about running a server in tutorial
2015-01-16 13:05:19 -08:00
Ben Alpert
1428ea7823
Merge pull request #2502 from fabiomcosta/patch-4
...
Removing unecessary resize listener
2015-01-16 12:08:34 -08:00
Paul O’Shannessy
deae575dae
v0.13.0-alpha.2
2015-01-16 10:33:42 -08:00
Paul O’Shannessy
588032da51
Update package deps
2015-01-16 10:33:42 -08:00
Paul O’Shannessy
2de1545eae
Merge pull request #2867 from zpao/no-warn-mock-methods
...
Don't warn about plain classes when in mocked components
2015-01-15 16:45:05 -08:00
Paul O’Shannessy
069aec1d42
Don't warn about plain classes when in mocked components
...
Mocking both doesn't copy properties that start with an underscore, nor
does it copy values, only nested objects.
2015-01-15 16:39:57 -08:00
Sebastian Markbåge
c01507fd11
Merge pull request #2866 from sebmarkbage/fixbindwarning
...
Don't bind callbacks to setState, setProps etc.
2015-01-15 15:36:50 -08:00
Paul O’Shannessy
45c0747a17
Merge pull request #2851 from jsfb/unique-key-in-dev-only
...
The unique key warning should only happen in dev.
2015-01-15 15:08:43 -08:00
Sebastian Markbage
d7d3ea5560
Don't bind callbacks to setState, setProps etc.
...
We added a bind to the public instance, but instead we can just pass the
public instance as the context when we execute.
This avoids a warning that fires when we call bind on auto-bound methods.
2015-01-15 14:00:45 -08:00
Paul O’Shannessy
8e6e98b387
Merge pull request #2865 from zpao/revert-jasmine-helper
...
Revert "Merge pull request #2814 from jsfb/testutils-consolemock"
2015-01-15 13:47:34 -08:00
Paul O’Shannessy
967435b249
Revert "Merge pull request #2814 from jsfb/testutils-consolemock"
...
This reverts commit 9514861d93
, reversing
changes made to cdec83732d
.
2015-01-15 13:35:57 -08:00
Cheng Lou
251d31a515
Merge pull request #2859 from javawizard/patch-1
...
ref-08-reconciliation.md: grammar/punctuation fixes
2015-01-15 14:36:27 -05:00
Alex Boyd
941cba679e
ref-08-reconciliation.md: grammar/punctuation fixes
2015-01-14 22:40:29 -07:00
Ben Alpert
8d5838af72
Merge pull request #2540 from spicyj/no-mutate-props
...
Warn when mutating props on a ReactElement
2015-01-14 11:37:43 -08:00
Paul O’Shannessy
892f0a59fe
Fix lint on travis
...
PR #2852 was not quite correct
2015-01-13 16:55:10 -08:00
Paul O’Shannessy
29ca22c2ff
Merge pull request #2852 from zpao/lint-fail-travis
...
Add eslint grunt task, fail travis for it
2015-01-13 16:12:15 -08:00
Paul O’Shannessy
84c83dca2d
Add eslint grunt task, fail travis for it
...
This is it...
2015-01-13 16:11:42 -08:00
Jim
8aa6171fd6
Eliminate context warnings when component isn't reading the conflicting context variable.
2015-01-13 15:34:46 -08:00
Paul O’Shannessy
54c82da15f
Merge pull request #2751 from zpao/eslint-fixup
...
Eslint fixup
2015-01-13 15:27:54 -08:00
Paul O’Shannessy
47ee780caf
[lint] fix consistent-returns
2015-01-13 15:26:33 -08:00