Merge pull request #4074 from jimfb/docs-context-parameter-confusing

Fixed confusing use of the word/name `context` in documentation
This commit is contained in:
Jim
2015-06-10 15:59:26 -07:00
committed by Paul O’Shannessy
parent b2fb150972
commit 7cf376483f
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -166,15 +166,15 @@ Configure React's event system to handle touch events on mobile devices.
#### React.Children.map
```javascript
object React.Children.map(object children, function fn [, object context])
object React.Children.map(object children, function fn [, object thisArg])
```
Invoke `fn` on every immediate child contained within `children` with `this` set to `context`. If `children` is a nested object or array it will be traversed: `fn` will never be passed the container objects. If children is `null` or `undefined` returns `null` or `undefined` rather than an empty object.
Invoke `fn` on every immediate child contained within `children` with `this` set to `thisArg`. If `children` is a nested object or array it will be traversed: `fn` will never be passed the container objects. If children is `null` or `undefined` returns `null` or `undefined` rather than an empty object.
#### React.Children.forEach
```javascript
React.Children.forEach(object children, function fn [, object context])
React.Children.forEach(object children, function fn [, object thisArg])
```
Like `React.Children.map()` but does not return an object.
+1 -1
View File
@@ -7,7 +7,7 @@ prev: initial-ajax.html
next: communicate-between-components.html
---
Here's how `false` renders in different contexts:
Here's how `false` renders in different situations:
Renders as `id="false"`: