Provide a more proper fix to avoid future breakage after discussion with Daniel offline

This commit is contained in:
Jason Wang
2016-03-02 16:57:58 -08:00
parent 78cd8fe227
commit 20762bfa1c
+4 -4
View File
@@ -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;
/**