You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Bryce Curtis (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/14 15:02:38 UTC
[jira] [Resolved] (CB-327) Only initialized JS when an HTML page is
loaded the first time.
[ https://issues.apache.org/jira/browse/CB-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bryce Curtis resolved CB-327.
-----------------------------
Resolution: Fixed
> Only initialized JS when an HTML page is loaded the first time.
> ---------------------------------------------------------------
>
> Key: CB-327
> URL: https://issues.apache.org/jira/browse/CB-327
> Project: Apache Callback
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 1.5.0
> Environment: Android 4.0.3 + jQMobile 1.0.1 + jQuery 1.7.1
> Reporter: Bryce Curtis
> Assignee: Bryce Curtis
> Fix For: 1.6.0
>
>
> When jQMobile loads new pages into a div, DOMContentLoaded is fired. This causes JS code to be re-initialized, wiping out the current state including the backbutton handler. As a result, backbutton doesn't work anymore. To resolve, JS code should only be initialized if not already done.
--
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