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

Commit 7bd8271

Browse files
committed
Fix code in Your Own Operators documentation
1 parent 328260a commit 7bd8271

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

doc/gettingstarted/operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ RxJS offers a full set of operators that cover most of the possible operations o
99
For example, let's see how we might implement the [_.where](http://lodash.com/docs#where) method from [Lo-Dash](http://lodash.com/) or [Underscore](http://underscorejs.org/), which takes a set of attributes and does a deep comparison for equality. We might try implementing this from scratch using the `Rx.Observable.createWithDisposable` method such as the following code.
1010

1111
```js
12-
Rx.Observable.prototype.whereProperties = function (properties) {
12+
Rx.Observable.prototype.filterByProperties = function (properties) {
1313
var source = this,
1414
comparer = Rx.internals.isEqual;
1515

16-
return Rx.Observable.filterByProperties(function (observer) {
16+
return Rx.Observable.createWithDisposable(function (observer) {
1717
// Our disposable is the subscription from the parent
1818
return source.subscribe(
1919
function (data) {

0 commit comments

Comments
 (0)