]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Whitespace 635/head
authorkborchers <kris.borchers@gmail.com>
Thu, 19 Apr 2012 02:30:07 +0000 (21:30 -0500)
committerkborchers <kris.borchers@gmail.com>
Thu, 19 Apr 2012 02:30:07 +0000 (21:30 -0500)
ui/jquery.ui.menu.js

index 0e70f6774cae6e6fdddfd231a5ef43677e4f2c91..b991b30e8b585316be65435b7692369434c8deb6 100644 (file)
@@ -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 );
                                }
                        }