You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Wolfgang Koller (JIRA)" <ji...@apache.org> on 2012/09/05 20:11:09 UTC

[jira] [Resolved] (CB-1376) Exceptions of custom backbutton handlers are not returned to native code anymore

     [ https://issues.apache.org/jira/browse/CB-1376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wolfgang Koller resolved CB-1376.
---------------------------------

    Resolution: Fixed

fixed by adding an option to not detach the event handler function calling
                
> Exceptions of custom backbutton handlers are not returned to native code anymore
> --------------------------------------------------------------------------------
>
>                 Key: CB-1376
>                 URL: https://issues.apache.org/jira/browse/CB-1376
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS, WP7
>    Affects Versions: Master
>            Reporter: Wolfgang Koller
>            Assignee: Filip Maj
>             Fix For: Master
>
>
> on windows phone 7 it was always possible to throw an exception in a custom backbutton handler function to trigger the default behaviour (AKA close the app).
> However since the backbutton event firing is detached in the common-js part using a setTimeout function, those exceptions are not caught by the native code anymore.
> I've already fixed this and will push the fix in a few minutes, I'm only adding this issue to document why I've done those changes.

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