File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -274,10 +274,10 @@ $.widget( "ui.menu", {
274
274
} ,
275
275
276
276
refresh : function ( ) {
277
- var that = this ,
277
+ var menus , items ,
278
+ that = this ,
278
279
icon = this . options . icons . submenu ,
279
- submenus = this . element . find ( this . options . menus ) ,
280
- menus , items ;
280
+ submenus = this . element . find ( this . options . menus ) ;
281
281
282
282
this . element . toggleClass ( "ui-menu-icons" , ! ! this . element . find ( ".ui-icon" ) . length ) ;
283
283
@@ -309,7 +309,6 @@ $.widget( "ui.menu", {
309
309
// Initialize menu-items containing spaces and/or dashes only as dividers
310
310
items . not ( ".ui-menu-item" ) . each ( function ( ) {
311
311
var item = $ ( this ) ;
312
- // hyphen, em dash, en dash
313
312
if ( that . _isDivider ( item ) ) {
314
313
item . addClass ( "ui-widget-content ui-menu-divider" ) ;
315
314
}
@@ -497,6 +496,8 @@ $.widget( "ui.menu", {
497
496
} ,
498
497
499
498
_isDivider : function ( item ) {
499
+
500
+ // Match hyphen, em dash, en dash
500
501
return ! / [ ^ \- \u2014 \u2013 \s ] / . test ( item . text ( ) ) ;
501
502
} ,
502
503
You can’t perform that action at this time.
0 commit comments