From dd8e668cf6f86bebe172d318fdffbe5ed3ae76dc Mon Sep 17 00:00:00 2001 From: Keith Gross Date: Wed, 9 May 2012 08:43:52 -0500 Subject: [PATCH] Making the blur for other buttons more specific which dramatically speeds up large listviews in IE 8 and below. Not sure if this has any downsides yet. --- js/jquery.mobile.navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.mobile.navigation.js b/js/jquery.mobile.navigation.js index 4191ecf4b35..440b01dae22 100644 --- a/js/jquery.mobile.navigation.js +++ b/js/jquery.mobile.navigation.js @@ -1259,8 +1259,8 @@ define( [ if ( path.parseUrl( link.getAttribute( "href" ) || "#" ).hash !== "#" ) { removeActiveLinkClass( true ); $activeClickedLink = $( link ).closest( ".ui-btn" ).not( ".ui-disabled" ); + $( "." + $.mobile.activePageClass + " ." + $.mobile.activeBtnClass ).blur(); $activeClickedLink.addClass( $.mobile.activeBtnClass ); - $( "." + $.mobile.activePageClass + " .ui-btn" ).not( link ).blur(); // By caching the href value to data and switching the href to a #, we can avoid address bar showing in iOS. The click handler resets the href during its initial steps if this data is present $( link )