mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-23 09:20:28 +00:00
make sure hashchange event never causes additional hash changes to occur when responding with a page change
This commit is contained in:
parent
b725ff8f6a
commit
74ebc360ca
1 changed files with 2 additions and 2 deletions
|
|
@ -453,12 +453,12 @@
|
|||
|
||||
//if to is defined, use it
|
||||
if ( to ){
|
||||
$.mobile.changePage( to, transition);
|
||||
$.mobile.changePage( to, transition, undefined, false);
|
||||
}
|
||||
//there's no hash, the active page is not the start page, and it's not manually triggered hashchange
|
||||
//we probably backed out to the first page visited
|
||||
else if( $.mobile.activePage.length && $.mobile.startPage[0] !== $.mobile.activePage[0] && !triggered ) {
|
||||
$.mobile.changePage( $.mobile.startPage, transition, true );
|
||||
$.mobile.changePage( $.mobile.startPage, transition, true, false );
|
||||
}
|
||||
//probably the first page - show it
|
||||
else{
|
||||
|
|
|
|||
Loading…
Reference in a new issue