Skip to content

Commit

Permalink
fix(fromEvent): pass options in unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
cartant committed Feb 27, 2018
1 parent b00eb16 commit 394b461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/observable/FromEventObservable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class FromEventObservable<T> extends Observable<T> {
} else if (isEventTarget(sourceObj)) {
const source = sourceObj;
sourceObj.addEventListener(eventName, <EventListener>handler, <boolean>options);
unsubscribe = () => source.removeEventListener(eventName, <EventListener>handler);
unsubscribe = () => source.removeEventListener(eventName, <EventListener>handler, <boolean>options);
} else if (isJQueryStyleEventEmitter(sourceObj)) {
const source = sourceObj;
sourceObj.on(eventName, handler);
Expand Down

0 comments on commit 394b461

Please sign in to comment.