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

This commit is contained in:
Scott González 2012-05-25 12:58:40 -04:00
parent f11de83554
commit be784b2f79

View File

@ -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" );
}