aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkborchers <kris.borchers@gmail.com>2012-04-18 21:30:07 -0500
committerkborchers <kris.borchers@gmail.com>2012-04-18 21:30:07 -0500
commit49f85509fe17b99ce0470bf011c49e03c338fb2c (patch)
treef707e81459fb34fdeda238b691157c030934bf43
parent890a45a22c7b7a8ae5e7ff64cfd44008bb2cdb88 (diff)
downloadjquery-ui-49f85509fe17b99ce0470bf011c49e03c338fb2c.tar.gz
jquery-ui-49f85509fe17b99ce0470bf011c49e03c338fb2c.zip
Menu: Whitespace
-rw-r--r--ui/jquery.ui.menu.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 0e70f6774..b991b30e8 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -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 );
}
}