jquery/jquery-mobile — Issue #3723: activeBtn is not defined
Author: inspektor99
Created: 2012-03-02 23:47:54+00:00
State: open

I get this error when I simply try to load a page in a web view on my Android application. I am using a Samsung Galaxy Player 5.0 running Android version 2.3.5.

I removed all custom JavaScript and HTML elements except for the main div with data-role="page" and I still see the problem.

This error is intermittent and happens about 50% of the time (it seems). Also this always happens if I change my app's orientation, forcing a re-load.

I am using jquery.mobile-1.1.0-rc.1.js with jquery-1.7.1.min.js

The error occurs on line 7269. I am able to fix (no idea if this is a correct fix) by declaring activeBtn = null; above line 7292.

var activeBtn = null; //TEMP FIX so i can reliably run my app
$.extend($.mobile, {
// turn on/off page loading message.
showPageLoadingMsg: function (theme, msgText, textonly) {
$html.addClass("ui-loading");
...