Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 0fb9513

Browse files
Merge pull request #525 from 38elements/master
Update document
2 parents 037234d + 8a8e15f commit 0fb9513

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

doc/api/core/observer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ var subscription = source.subscribe(observer);
6262

6363
* * *
6464

65-
### <a id="rxobserverfromotifierhandler"></a>`Rx.Observer.fromNotifier(handler)`
65+
### <a id="rxobserverfromotifierhandler"></a>`Rx.Observer.fromNotifier(handler, [thisArg])`
6666
<a href="#rxobserverfromotifierhandler">#</a> [&#x24C8;](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.js#L1843-L1851 "View in source") [&#x24C9;][1]
6767

6868
Creates an observer from a notification callback.
6969

7070
#### Arguments
7171
1. `handler` *(Function)*: Function that handles a notification.
72+
2. `[thisArg]` *(`Any`)*: Object to use as `this` when executing `handler`.
7273

7374
#### Returns
7475
*(Observer)*: The observer object that invokes the specified handler using a notification corresponding to each message it receives.

doc/api/core/operators/average.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
### `Rx.Observable.prototype.average([selector])`
1+
### `Rx.Observable.prototype.average([selector], [thisArg])`
22
[&#x24C8;](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/average.js "View in source")
33

44
Computes the average of an observable sequence of values that are in the sequence or obtained by invoking a transform function on each element of the input sequence if present.
55

66
#### Arguments
77
1. `[selector]` *(`Function`)*: A transform function to apply to each element.
8+
2. `[thisArg]` *(`Any`)*: Object to use as `this` when executing `selector`.
89

910
#### Returns
1011
*(`Observable`)*: An observable sequence containing a single element with the average of the sequence of values.

doc/api/core/operators/concatmap.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
### `Rx.Observable.prototype.concatMap(selector, [resultSelector])`
2-
### `Rx.Observable.prototype.selectConcat(selector, [resultSelector])`
1+
### `Rx.Observable.prototype.concatMap(selector, [resultSelector], [thisArg])`
2+
### `Rx.Observable.prototype.selectConcat(selector, [resultSelector], [thisArg])`
33
[&#x24C8;]((https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/concatmap.js "View in source")
44

55
This is an alias for the `selectConcat` method. This can be one of the following:
@@ -40,6 +40,8 @@ source.concatMap([1,2,3]);
4040
3. the index of the outer element
4141
4. the index of the inner element
4242

43+
3. `[thisArg]` *(`Any`)*: If `resultSelector` is not `Function`, Object to use as `this` when executing `selector`.
44+
4345
#### Returns
4446
*(`Observable`)*: An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.
4547

doc/api/core/operators/count.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
### `Rx.Observable.prototype.count([predicate])`
1+
### `Rx.Observable.prototype.count([predicate], [thisArg])`
22
[&#x24C8;](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/count.js "View in source")
33

44
Returns an observable sequence containing a value that represents how many elements in the specified observable sequence satisfy a condition if provided, else the count of items.
55

66
#### Arguments
7-
1. `[predicate]` *(`Any`)*: A function to test each element for a condition. The callback is called with the following information:
7+
1. `[predicate]` *(`Function`)*: A function to test each element for a condition. The callback is called with the following information:
88
1. the value of the element
99
2. the index of the element
1010
3. the Observable object being subscribed
11+
2. `[thisArg]` *(`Any`)*: Object to use as `this` when executing `predicate`.
1112

1213
#### Returns
1314
*(`Observable`)*: An observable sequence containing a single element with a number that represents how many elements in the input sequence satisfy the condition in the predicate function if provided, else the count of items in the sequence.

doc/api/core/operators/for.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### `Rx.Observable.for(sources, resultSelector)`
1+
### `Rx.Observable.for(sources, resultSelector, [thisArg])`
22
[&#x24C8;](https://github.com/Reactive-Extensions/RxJS/blob/master/tests/observable/for.js "View in source")
33

44
Concatenates the observable sequences or Promises obtained by running the specified result selector for each element in source.
@@ -7,6 +7,7 @@ There is an alias for this method called `forIn` for browsers <IE9
77
#### Arguments
88
1. `sources` *(Array)*: An array of values to turn into an observable sequence.
99
2. `resultSelector` *(`Function`)*: A function to apply to each item in the sources array to turn it into an observable sequence.
10+
3. `[thisArg]` *(`Any`)*: Object to use as `this` when executing `resultSelector`.
1011

1112
#### Returns
1213
*(`Observable`)*: An observable sequence from the concatenated observable sequences or Promises.

0 commit comments

Comments
 (0)