Skip to content

Commit

Permalink
cleanup readme example observable (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
javadoug authored and benlesh committed Mar 2, 2018
1 parent d8de72f commit c849a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ import Symbol_observable from 'symbol-observable';
someObject[Symbol_observable] = () => {
return {
subscribe(observer) {
const handler = e => observer.next(e));
const handler = e => observer.next(e);
someObject.addEventListener('data', handler);
return {
unsubscribe() {
someObject.removeEventListener('data', handler);
}
}
},
[Symbol_observable]() { return this },
[Symbol_observable]() { return this }
}
}
```
Expand Down

0 comments on commit c849a83

Please sign in to comment.