Skip to content

Commit

Permalink
fix(inappbrowser): fix event listener
Browse files Browse the repository at this point in the history
closes 419
  • Loading branch information
ihadeed committed Aug 13, 2016
1 parent ecbe5fa commit 618d866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/inappbrowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class InAppBrowser {
on(event: string): Observable<InAppBrowserEvent> {
return new Observable<InAppBrowserEvent>((observer) => {
this._objectInstance.addEventListener(event, observer.next.bind);
return () => this._objectInstance.removeEventListener(event, observer.next.bind);
return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer));
});
}
}

0 comments on commit 618d866

Please sign in to comment.