Skip to content

Commit 49f8550

Browse files
committed
Menu: Whitespace
1 parent 890a45a commit 49f8550

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ui/jquery.ui.menu.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,16 @@ $.widget( "ui.menu", {
196196
event.preventDefault();
197197
break;
198198
case $.ui.keyCode.RIGHT:
199-
!this.active.is(".ui-state-disabled") && this.expand( event );
199+
if ( !this.active.is( ".ui-state-disabled" ) ) {
200+
this.expand( event );
201+
}
200202
event.preventDefault();
201203
break;
202204
case $.ui.keyCode.ENTER:
203-
if ( !this.active.is(".ui-state-disabled") ) {
205+
if ( !this.active.is( ".ui-state-disabled" ) ) {
204206
if ( this.active.children( "a[aria-haspopup='true']" ).length ) {
205207
this.expand( event );
206-
}
207-
else {
208+
} else {
208209
this.select( event );
209210
}
210211
}

0 commit comments

Comments
 (0)