Permalink
Browse files

Navigation: vclick handler: Do not avoid removing active class off bu…

…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...
1 parent 64a8d97 commit 8e8b83a8ded9c522dcf60d1fb00ff40f79e5b3a1 @gabrielschulhof gabrielschulhof committed Dec 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/jquery.mobile.navigation.js
@@ -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 );

0 comments on commit 8e8b83a

Please sign in to comment.