jquery mobile - More graceful way of releasing JQM page transition lock -


i'm adding exception handling jqm app , i'm having trouble page transitions.

in nutshell, i'm doing this:

window.onerror = function myerrorhandler(errormsg, url, linenumber) {    // crap, bad happened somewhere.      // tell user    // report testflight    // @ variables in memory , try determine how gracefully recover. } 

overall working - can return user main menu or "safe" recovery point, instead of app turning rock.

the problem this: if exception happens during initialization of page, jqm's "ispagetransitioning" flag left true. thus, won't accept more $.mobile.changepage() calls.

there function in jqm called releasepagetransitionlock() fixes problem. not exposed publically, however.

i hacked jqm adding method:

$.mobile.releasepagetransitionlock = function() {     releasepagetransitionlock(); } 

works perfect - i'd rather not hack jqm file.

is there reasonable way access releasepagetransitionlock() within jqm's protected environment?


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -