incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Bouquillon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-829) Calling document.addEventListener("backbutton") with the same callback function more than once results in never being able to fully remove the listener
Date Mon, 28 May 2012 20:57:22 GMT

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

Julien Bouquillon commented on CB-829:
--------------------------------------

PR for a failing test : https://github.com/apache/incubator-cordova-js/pull/14
                
> 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
>
> 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

        

Mime
View raw message