Skip to content

Commit 11d24ee

Browse files
committed
Menu: Fix formatting and whitespace (was supposed to update previous commit)
1 parent f41d237 commit 11d24ee

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

ui/jquery.ui.menu.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,13 @@ $.widget( "ui.menu", {
301301

302302
_startOpening: function( submenu ) {
303303
clearTimeout( this.timer );
304-
305-
//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
306-
if ( submenu.attr( "aria-hidden" ) !== "true" ) return;
307-
304+
305+
// Don't open if already open fixes a Firefox bug that caused a .5 pixel
306+
// shift in the submenu position when mousing over the carat icon
307+
if ( submenu.attr( "aria-hidden" ) !== "true" ) {
308+
return;
309+
}
310+
308311
var self = this;
309312
self.timer = setTimeout( function() {
310313
self._close();

0 commit comments

Comments
 (0)