]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Whitespace
authorkborchers <kris.borchers@gmail.com>
Wed, 9 May 2012 04:57:56 +0000 (23:57 -0500)
committerkborchers <kris.borchers@gmail.com>
Wed, 9 May 2012 04:57:56 +0000 (23:57 -0500)
ui/jquery.ui.menu.js

index 8956d64043f990a0e9f0239e72fe177187e3a6e0..7704521fbee937552d11d26fbaaf1792903d269a 100644 (file)
@@ -331,12 +331,12 @@ $.widget( "ui.menu", {
                this.active.parent().closest( ".ui-menu-item" ).children( "a:first" ).addClass( "ui-state-active" );
 
                if ( event.type === "keydown" ) {
-            this._close();
-        } else {
-            this.timer = this._delay(function() {
+                       this._close();
+               } else {
+                       this.timer = this._delay(function() {
                                this._close();
                        }, this.delay );
-        }
+               }
 
                nested = $( "> .ui-menu", item );
                if ( nested.length && ( /^mouse/.test( event.type ) ) ) {