Skip to content
Permalink
Browse files

Menu: Added a comment about which characters are checked for dividers.

  • Loading branch information...
scottgonzalez committed May 25, 2012
1 parent f11de83 commit be784b2f79e6f70a8b02d4ae7834d5081d8993c6
Showing with 1 addition and 0 deletions.
  1. +1 −0 ui/jquery.ui.menu.js
@@ -302,6 +302,7 @@ $.widget( "ui.menu", {
// initialize unlinked menu-items containing spaces and/or dashes only as dividers
menus.children( ":not(.ui-menu-item)" ).each( function() {
var item = $( this );
// hypen, em dash, en dash
if ( !/[^\-—\s]/.test( item.text() ) ) {
item.addClass( "ui-widget-content ui-menu-divider" );
}

0 comments on commit be784b2

Please sign in to comment.
You can’t perform that action at this time.