Hello all,
I've been working on a App for a little while using jQuery Mobile and phonegap and have just noticed a problem that is occurring across the project.
When a button or link is pressed on my Nexus S, the click function attached to the button or link is being called twice.
Here is some sample code;
html:
- <input type="button" data-theme="b" id="debug" value="Debug Mode Toggle" data-inline="true"/>
js:
- var debug = false;
- $('#debug').click(function(e) {
- debug = !debug;
- alert(debug);
- });
When I click the button from my web browser a get an alert telling me debug is now true.
When I click the button from my phonegap application, I get two alerts, the first one saying true, and the second saying false. It's calling the click function twice.
Has anyone else had this problem, or know of a way to fix it?
Thanks.