mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-23 23:54:43 +00:00
Navigation: delay removal of duplicateCachedPage
This commit is contained in:
parent
553b58567f
commit
0a87b59a04
1 changed files with 6 additions and 4 deletions
|
|
@ -212,10 +212,7 @@
|
|||
}
|
||||
removeActiveLinkClass();
|
||||
|
||||
//if there's a duplicateCachedPage, remove it from the DOM now that it's hidden
|
||||
if( duplicateCachedPage != null ){
|
||||
duplicateCachedPage.remove();
|
||||
}
|
||||
|
||||
|
||||
//jump to top or prev scroll, if set
|
||||
$.mobile.silentScroll( to.data( 'lastScroll' ) );
|
||||
|
|
@ -225,6 +222,11 @@
|
|||
if( to.data("page")._trigger("show", null, {prevPage: from}) !== false ){
|
||||
$.mobile.activePage = to;
|
||||
}
|
||||
|
||||
//if there's a duplicateCachedPage, remove it from the DOM now that it's hidden
|
||||
if (duplicateCachedPage != null) {
|
||||
duplicateCachedPage.remove();
|
||||
}
|
||||
};
|
||||
|
||||
if(transition && (transition !== 'none')){
|
||||
|
|
|
|||
Loading…
Reference in a new issue