From 20762bfa1c3bbb08d17e66b2826ac73ed3085f82 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Wed, 2 Mar 2016 16:57:58 -0800 Subject: [PATCH] Provide a more proper fix to avoid future breakage after discussion with Daniel offline --- cordova/plugins/InAppBrowser.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cordova/plugins/InAppBrowser.d.ts b/cordova/plugins/InAppBrowser.d.ts index 882a7cfb3..5fd5a1e3d 100644 --- a/cordova/plugins/InAppBrowser.d.ts +++ b/cordova/plugins/InAppBrowser.d.ts @@ -107,9 +107,9 @@ interface InAppBrowser extends Window { * loaderror: event fires when the InAppBrowser encounters an error when loading a URL. * exit: event fires when the InAppBrowser window is closed. * @param callback the function that executes when the event fires. The function is - * passed an InAppBrowserEvent object as a parameter. + * passed an Event object as a parameter. */ - addEventListener(type: string, callback: (event: InAppBrowserEvent) => void): void; + addEventListener(type: string, callback: (event: Event) => void): void; // removeEventListener overloads /** * Removes a listener for an event from the InAppBrowser. @@ -163,9 +163,9 @@ interface InAppBrowser extends Window { * loaderror: event fires when the InAppBrowser encounters an error when loading a URL. * exit: event fires when the InAppBrowser window is closed. * @param callback the function that executes when the event fires. The function is - * passed an InAppBrowserEvent object as a parameter. + * passed an Event object as a parameter. */ - removeEventListener(type: string, callback: (event: InAppBrowserEvent) => void): void; + removeEventListener(type: string, callback: (event: Event) => void): void; /** Closes the InAppBrowser window. */ close(): void; /**