Permalink
Browse files

Menu: Whitespace

  • Loading branch information...
kborchers committed Apr 19, 2012
1 parent 890a45a commit 49f85509fe17b99ce0470bf011c49e03c338fb2c
Showing with 5 additions and 4 deletions.
  1. +5 −4 ui/jquery.ui.menu.js
View
@@ -196,15 +196,16 @@ $.widget( "ui.menu", {
event.preventDefault();
break;
case $.ui.keyCode.RIGHT:
- !this.active.is(".ui-state-disabled") && this.expand( event );
+ if ( !this.active.is( ".ui-state-disabled" ) ) {
+ this.expand( event );
+ }
event.preventDefault();
break;
case $.ui.keyCode.ENTER:
- if ( !this.active.is(".ui-state-disabled") ) {
+ if ( !this.active.is( ".ui-state-disabled" ) ) {
if ( this.active.children( "a[aria-haspopup='true']" ).length ) {
this.expand( event );
- }
- else {
+ } else {
this.select( event );
}
}

0 comments on commit 49f8550

Please sign in to comment.