From fa04e2e661d560283d71baf01a0cf6932c4616dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 17 Sep 2010 17:24:12 -0400 Subject: [PATCH] Don't clear the pageTransition variable until after the hashchange. --- js/jQuery.mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jQuery.mobile.js b/js/jQuery.mobile.js index 443cce30..50eef3fd 100644 --- a/js/jQuery.mobile.js +++ b/js/jQuery.mobile.js @@ -53,7 +53,6 @@ // let the hashchange event handler take care of everything else location.hash = href; - pageTransition = undefined; // note: if it's a non-local-anchor and Ajax is not supported, go to page if ( href.match( /^[^#]/ ) && !$.support.ajax ) { @@ -115,6 +114,7 @@ back = !pageTransition && stackLength > 1 && urlStack[ stackLength - 2 ].url === url, transition = pageTransition || "slide"; + pageTransition = undefined; // if the new href is the same as the previous one if ( back ) {