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

Commit 49df1d7

Browse files
committed
1 parent 5761f5c commit 49df1d7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/api/core/operators/fromeventpattern.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
### `Rx.Observable.fromEventPattern(addHandler, removeHandler, [selector])`
1+
### `Rx.Observable.fromEventPattern(addHandler, [removeHandler], [selector])`
22
[Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/fromeventpattern.js "View in source")
33

44
Creates an observable sequence by using the addHandler and removeHandler functions to add and remove the handlers, with an optional selector function to project the event arguments.
55

66
#### Arguments
77
1. `addHandler` *(`Function`)*: The DOMElement, NodeList or EventEmitter to attach a listener.
8-
2. `removeHandler` *(`Function`)*: The event name to attach the observable sequence.
8+
2. `[removeHandler]` *(`Function`)*: The optional function to remove a handler from an emitter.
99
3. `[selector]` *(`Function`)*: A selector which takes the arguments from the event handler to produce a single item to yield on next.
1010

1111
#### Returns

0 commit comments

Comments
 (0)