]> source.dussan.org Git - jquery-ui.git/commitdiff
Menu: Fix formatting and whitespace (was supposed to update previous commit)
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 14 Jul 2011 15:10:28 +0000 (11:10 -0400)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Thu, 14 Jul 2011 15:10:28 +0000 (11:10 -0400)
ui/jquery.ui.menu.js

index 83ff1b949813dfb31153a7416fe5c48b0b14b050..66601ef385d0bba6df3680934716fd6afa64ac46 100644 (file)
@@ -301,10 +301,13 @@ $.widget( "ui.menu", {
 
        _startOpening: function( submenu ) {
                clearTimeout( this.timer );
-               
-               //Don't open if already open fixes a Firefox bug that caused a .5 pixel shift in the submenu position when mousing over the carat icon
-               if ( submenu.attr( "aria-hidden" ) !== "true" ) return;
-               
+
+               // Don't open if already open fixes a Firefox bug that caused a .5 pixel
+               // shift in the submenu position when mousing over the carat icon
+               if ( submenu.attr( "aria-hidden" ) !== "true" ) {
+                       return;
+               }
+
                var self = this;
                self.timer = setTimeout( function() {
                        self._close();