Navigation: delay removal of duplicateCachedPage

This commit is contained in:
Richard Stutfield 2010-12-10 12:27:14 +00:00
parent 553b58567f
commit 0a87b59a04

View file

@ -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')){