Skip to content

Commit

Permalink
fix(inappbrowser): fix event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Aug 13, 2016
1 parent 115c167 commit 4b08d85
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 @@ -96,7 +96,7 @@ export class InAppBrowser {
*/
on(event: string): Observable<InAppBrowserEvent> {
return new Observable<InAppBrowserEvent>((observer) => {
this._objectInstance.addEventListener(event, observer.next.bind);
this._objectInstance.addEventListener(event, observer.next.bind(observer));
return () => this._objectInstance.removeEventListener(event, observer.next.bind(observer));
});
}
Expand Down

0 comments on commit 4b08d85

Please sign in to comment.