incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hugo (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-633) overriding backbutton is broekne when removeEventListener() is called before addEventListener()
Date Thu, 03 May 2012 05:54:04 GMT
Hugo created CB-633:
-----------------------

             Summary: overriding backbutton is broekne when removeEventListener() is called
before addEventListener()
                 Key: CB-633
                 URL: https://issues.apache.org/jira/browse/CB-633
             Project: Apache Callback
          Issue Type: Bug
          Components: Android
    Affects Versions: 1.7.0, 1.6.1
            Reporter: Hugo
            Assignee: Joe Bowser


If document.removeEventListener("backbutton", function(){}, false) is called before the addEventListener(),
the backbutton default behavior isn't overriden.


To reproduce:

document.removeEventListener("backbutton", function(){}, false)
document.addEventListener("backbutton", function(){}, false)
// ..backbutton default behavior should be overridden (but it's not)


On the other hand the following will work as expected:

document.addEventListener("backbutton", function(){}, false)
// ..ok, backbutton default behavior is overridden



--
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