Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Navigation: vclick handler: Do not avoid removing active class off bu…
Browse files Browse the repository at this point in the history
…tton that already has it

This is a revert of 35eea35 and makes our faulty handling of the double vclick on iOS look even worse, but the correct solution for iOS is not to fix the button active-indication, but to fix the double-vclick-but-no-click problem - see #5149
  • Loading branch information
Gabriel Schulhof committed Dec 13, 2012
1 parent 64a8d97 commit 8e8b83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.mobile.navigation.js
Expand Up @@ -1384,7 +1384,7 @@ define( [
$btn = $btn.closest( ".ui-btn" );
}

if ( $btn.length > 0 && !( $btn.hasClass( $.mobile.activeBtnClass ) || $btn.hasClass( "ui-disabled" ) ) ) {
if ( $btn.length > 0 && !$btn.hasClass( "ui-disabled" ) ) {
removeActiveLinkClass( true );
$activeClickedLink = $btn;
$activeClickedLink.addClass( $.mobile.activeBtnClass );
Expand Down

0 comments on commit 8e8b83a

Please sign in to comment.