From 4b08d854bdd3951e11be4b84ec57b5e01c3bbe82 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Sat, 13 Aug 2016 11:30:52 -0400 Subject: [PATCH] fix(inappbrowser): fix event listener --- src/plugins/inappbrowser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/inappbrowser.ts b/src/plugins/inappbrowser.ts index fdb57995f..0dccb7530 100644 --- a/src/plugins/inappbrowser.ts +++ b/src/plugins/inappbrowser.ts @@ -96,7 +96,7 @@ export class InAppBrowser { */ on(event: string): Observable { return new Observable((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)); }); }