From fae3a93f2623435d2bab91ca3d78164a67e324d7 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 3 Nov 2010 18:56:21 -0400 Subject: [PATCH] remove active link class before leaving to an external page. Fixes #375 --- js/jquery.mobile.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/jquery.mobile.js b/js/jquery.mobile.js index 66915f7d..12664f69 100644 --- a/js/jquery.mobile.js +++ b/js/jquery.mobile.js @@ -221,7 +221,7 @@ } activeClickedLink = null; } - + //for getting or creating a new page function changePage( to, transition, back, changeHash){ @@ -546,6 +546,8 @@ $html.addClass( jQuery.event.special.orientationchange.orientation( $window ) ); }); - $window.load(hideBrowserChrome); + $window + .load(hideBrowserChrome) + .unload(removeActiveLinkClass); })( jQuery, this );