Skip to content

Commit

Permalink
Making the blur for other buttons more specific which dramatically sp…
Browse files Browse the repository at this point in the history
…eeds up large listviews in IE 8 and below. Not sure if this has any downsides yet.
  • Loading branch information
justKeith committed May 9, 2012
1 parent ed96cb4 commit dd8e668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit dd8e668

Please sign in to comment.