Commit Graph
15395 Commits
Author SHA1 Message Date
Mark IJbema cd7b8aa0b1 Added event parameter 2014-05-18 11:29:29 +02:00
Ben Alpert 1baca43391 Mention PropTypes in top-level API
cf. #449
2014-05-18 00:15:35 -07:00
Ben Alpert f1a5a4c58e Be more specific with createClass, renderComponent
Closes #371.
2014-05-18 00:15:35 -07:00
Ben Alpert 566af16e64 Tweak getting started wording 2014-05-18 00:15:35 -07:00
Joshua Ma de1f783188 Update todomvc dispatcher to match docs, add AppDispatcher test 2014-05-17 22:01:18 -07:00
Joshua Ma f12a376f34 Update Flux Dispatcher.dispatch and waitFor examples
The previous examples didn't properly work when 1) a Store callback does
waitFor on Stores that haven't been reached yet and 2) a Store callback
waits on another Store that is already waiting.

The updated example uses constructs Promises up front and then
asynchronously resolves them.
2014-05-17 21:17:08 -07:00
Thomas Shafer 0a7128c70f Fixed spacing of invalid checksum warning 2014-05-17 20:04:52 -07:00
Ben Alpert e9653aad6a Merge pull request #1552 from t3chnoboy/master
Update Jasmine link
2014-05-17 18:33:51 -07:00
Dmitry Mazuro 8192b8c27f Update Jasmine link 2014-05-18 04:30:02 +03:00
Ben Alpert 78958fe0f5 Remove references to autoflow
Most references were removed in 6e59561; this should be the last.
2014-05-17 15:15:26 -07:00
Ben Alpert 6c331fba07 Add hasOwnProperty checks where appropriate
For boolean-like objects, I've added hasOwnProperty checks in addition to the existing truthiness check even though for most of these dicts, we leave out false keys instead of setting them explicitly to false.

In DOMPropertyOperations, we don't need to check hasOwnProperty if the property is in isStandardName because (with the exception of getPossibleStandardName) the dicts on DOMProperty will now be consistently populated with every valid attribute.
2014-05-16 10:59:51 -07:00
Paul O’Shannessy 4558e2c4bc Merge pull request #1491 from naturalatlas/itemscope
Added support for itemscope, itemtype, itemprop attributes.
2014-05-15 14:48:51 -07:00
Jan Kassens 46de927a28 Merge pull request #1537 from chenglou/rm-filter-attrs
Remove filterAttributes.js
2014-05-15 12:16:35 -07:00
Cheng Lou 80a5463a2c Remove filterAttributes.js
This is no longer needed because of https://github.com/facebook/react/commit/089a494a1f0cc1892f1525fd746bac10c5a55175

mutateHTMLNodeWithMarkup.js was the only one using it.
2014-05-15 14:14:38 -04:00
Andreas Svensson 3bec9f070f Guard against contentEditable with children props 2014-05-15 11:08:25 +02:00
Ben Alpert c913c95908 Update Simulate docs to reflect reality
cf. #1532, #1445.
2014-05-14 21:39:00 -07:00
remixz 3f31ec463f Change harmony option to "harmony=true" 2014-05-14 15:50:35 -07:00
remixz 65c258a7b7 Add harmony transform support in browser (Fixes GH-1420)
I implemented this by checking for `type="text/jsx;harmony"`, since this
has a bit of a cleaner implementation rather than parsing a JSON object
out of a data attribute. If in the future there are other options to
pass, it would make sense to move to a system like that.

Along with adding support, there is also a new example added that's
the basic-jsx example with Harmony syntax.
2014-05-13 22:07:02 -07:00
Daniel Schonfeld 7d91277a50 warn when shouldComponentUpdate() returns undefined 2014-05-13 22:44:00 -04:00
Pete Hunt b66202eb98 Merge pull request #1487 from somethingkindawierd/master
Adds svg mask and pattern dom components
2014-05-13 11:28:59 -07:00
Ben Alpert 808a54f410 Batch subupdates caused by any state update
With this, multiple setState calls triggered by a componentDidUpdate handler (or similar) will be batched together, regardless of if the original setState call was in a batching context.

I also cleaned up some inconsistencies with the order of component updates and callbacks in situations where one component's update directly causes another to update.

Fixes #1147. Helps with #1353 and #1245 as well, though doesn't completely fix them yet.

Test Plan:
grunt test
2014-05-13 10:50:26 -07:00
Paul O’Shannessy a00199ddd2 Merge pull request #1358 from spicyj/one-transaction
Share reconcile transaction in batched updates
2014-05-13 10:47:03 -07:00
Josh Duck 29f3f74c52 Make perf show all exclusive time, not just render time.
Currently require('ReactDefaultPerf').printExclusive() shows render
time and aggregate componentMount time.

This makes it show exclusive mount time by tracking a stack.
2014-05-12 16:39:09 -07:00
Pete Hunt 7268f44c94 Merge pull request #1504 from spicyj/flux-621
Start Flux video at 10m21s
2014-05-12 13:44:21 -07:00
Pete Hunt e4f80f301d Merge pull request #1516 from syranide/es5err
Preemptively error when required ES5 shim/shams are not available
2014-05-12 13:40:00 -07:00
Ben Alpert d46e1588f9 Update Flux README to point at website post/docs 2014-05-12 01:33:53 -07:00
Ben Alpert 76abdddae8 todomvc-flux: Depend on uglify-js, not uglifyjs
Fixes #1505.

Confusingly, the uglify-js package provides the `uglifyjs` binary and `npm run-script build` didn't work if uglify-js wasn't installed globally; now it does.
2014-05-12 01:14:01 -07:00
Andreas Svensson 659b7981e1 Preemptively error when required ES5 shim/shams are not available 2014-05-11 21:20:07 +02:00
Ben Alpert 6b1c546602 Add missing emitChange() to Flux docs 2014-05-10 17:50:26 -03:00
Ben Alpert 6b758ef283 Merge pull request #1503 from dybskiy/patch-2
Update flux-todo-list.md
2014-05-09 15:38:18 -03:00
Ben Alpert 39a0dbaebe Start Flux video at 10m21s 2014-05-09 15:34:12 -03:00
Yuriy Dybskiy d5a5840d31 Update flux-todo-list.md
Fix broken link to todomvc-flux repo

@spicyj cla signed
2014-05-09 11:11:42 -07:00
Daniel Lo Nigro bf957c6c50 Fix minor typo 2014-05-09 10:01:40 -07:00
Brian Reavis f399b68201 Stylistic changes. 2014-05-08 23:25:10 -07:00
fisherwebdev 39ec28f6f4 update Flux tutorial link 2014-05-08 19:57:19 -07:00
Christopher Chedeau 7f9a8385b6 Merge pull request #1499 from vjeux/flux
Flux blog post and tutorial
2014-05-08 16:26:43 -07:00
Vjeux 46995dd2fe Flux blog post and tutorial 2014-05-09 01:22:47 +02:00
Paul O’Shannessy c4ed2c1c90 Move tagtree image to docs/
Missed this in #1470
2014-05-08 11:52:32 -07:00
Paul O’Shannessy 8af991f10b Codemod mockReturnValue externally
320024555c didn't update the mocks module
here, just the callsites.
2014-05-08 10:47:44 -07:00
Christopher Chedeau 320024555c Codemod mockDefaultReturnValue
The naming is super confusing.

mockReturnValue -> mockReturnValueOnce
mockDefaultReturnValue -> mockReturnValue
2014-05-08 10:11:38 -07:00
Paul O’Shannessy 562b1b201e Merge pull request #1492 from spicyj/rtg-from-false
ReactTransitionGroup: Fix moving from falsey child
2014-05-08 09:46:49 -07:00
Jon Beebe c50dbb0ec1 Adds svg pattern and mask components 2014-05-08 07:16:28 -05:00
Paul O’Shannessy 32b84a4c5e Merge pull request #1460 from spicyj/tg2
Actually fix transitioning to null
2014-05-07 17:12:05 -07:00
Andreas Svensson aa044c6b61 Add support for JSX member expressions <React.DOM.div /> 2014-05-08 00:10:10 +02:00
Paul O’Shannessy aa46ab1862 Merge pull request #1486 from nbostrom/patch-1
Embed video from F8
2014-05-07 11:09:19 -07:00
Paul O’Shannessy 67c68612c0 Title case on videos page 2014-05-07 11:07:49 -07:00
Paul O’Shannessy 9926a2d7f9 Merge pull request #1490 from Vijar/master
Fixed incorrect usage of github api in example
2014-05-07 11:01:05 -07:00
Paul O’Shannessy 4a24283559 Merge pull request #1276 from marcins/bugfix/1275-transitiongroup-android
Fix transition end detection for Android
2014-05-07 10:54:37 -07:00
Paul O’Shannessy c7c3027081 Small style fixup 2014-05-07 10:44:30 -07:00
Brian Reavis bfcd4cac48 Use camelCase and declare MUST_USE_ATTRIBUTE. 2014-05-07 10:02:57 -07:00