[ 
https://issues.apache.org/jira/browse/CB-4819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769183#comment-13769183
 ] 

Peter commented on CB-4819:
---------------------------

BTW, the mysterious doubling of callbacks had a simple explanation: The test 
code attempts to load the page www.google.com, but then that redirects to the 
Australian www.google.com.au. So the loadstart event happens 2 times - once for 
each url. The alert 'Unexpected: got multiple loadstart events.' is a bit 
disconcerting, but otherwise it seems OK.
                
> InAppBrowser.removeEventListener - description of callback parameter
> --------------------------------------------------------------------
>
>                 Key: CB-4819
>                 URL: https://issues.apache.org/jira/browse/CB-4819
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs
>    Affects Versions: 2.9.0
>            Reporter: Peter
>            Assignee: Michael Brooks
>            Priority: Minor
>
> The documentation for removeEventListener seems like a cut/paste error from 
> addEventListener.
> http://cordova.apache.org/docs/en/3.0.0/cordova_inappbrowser_inappbrowser.md.html#removeEventListener
>  says:
> {quote}
> *callback:* the function to execute when the event fires. The function is 
> passed an InAppBrowserEvent object.
> {quote}
> It might be better described as something like:
> {quote}
> *callback:* the function to be removed, which was previously registered for 
> this event by addEventListener
> {quote}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to