Skip to content

Commit be784b2

Browse files
committed
Menu: Added a comment about which characters are checked for dividers.
1 parent f11de83 commit be784b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.menu.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ $.widget( "ui.menu", {
302302
// initialize unlinked menu-items containing spaces and/or dashes only as dividers
303303
menus.children( ":not(.ui-menu-item)" ).each( function() {
304304
var item = $( this );
305+
// hypen, em dash, en dash
305306
if ( !/[^\-\s]/.test( item.text() ) ) {
306307
item.addClass( "ui-widget-content ui-menu-divider" );
307308
}

0 commit comments

Comments
 (0)