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

Simon MacDonald commented on CB-829:
------------------------------------

Sweet, tested on Android where I added the same event listener twice and added 
two different event listeners and everything works great.
                
> Calling document.addEventListener("backbutton") with the same callback 
> function more than once results in never being able to fully remove the 
> listener
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-829
>                 URL: https://issues.apache.org/jira/browse/CB-829
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.7.0, 1.8.0
>            Reporter: Simon MacDonald
>            Assignee: Filip Maj
>            Priority: Minor
>             Fix For: 1.8.0
>
>
> I ran into this problem while running mobile spec tests on Android. If I 
> click the Events->Intercept Backbutton link twice then clicking the HW back 
> button results in two console logs saying the back button was intercepted. 
> This is okay. Clicking Events->Stop intercept of back button then clicking 
> the HW back button results in one console log saying the back button was 
> intercepted. This is still good.
> Clicking Events->Stop intercept of back button then clicking the HW back 
> button results in one console log saying the back button was intercepted. 
> This is where things break down. I can click the remove event listener button 
> as many times as I want but it will never be removed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to