diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-07-14 11:10:28 -0400 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-07-14 11:10:28 -0400 |
commit | 11d24ee84cc29adf7349b08031146936cf4dd9a9 (patch) | |
tree | b540f32425004841bc3f0a5fc6d6d52985ba0ec3 /ui/jquery.ui.menu.js | |
parent | f41d2378f95bc88165833487a923f90061d3f138 (diff) | |
download | jquery-ui-11d24ee84cc29adf7349b08031146936cf4dd9a9.tar.gz jquery-ui-11d24ee84cc29adf7349b08031146936cf4dd9a9.zip |
Menu: Fix formatting and whitespace (was supposed to update previous commit)
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 11 |
1 files changed, 7 insertions, 4 deletions
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(); |