From: Jörn Zaefferer Date: Thu, 14 Jul 2011 15:10:28 +0000 (-0400) Subject: Menu: Fix formatting and whitespace (was supposed to update previous commit) X-Git-Tag: 1.9m6~98^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=11d24ee84cc29adf7349b08031146936cf4dd9a9;p=jquery-ui.git Menu: Fix formatting and whitespace (was supposed to update previous commit) --- diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 83ff1b949..66601ef38 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -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();