From be784b2f79e6f70a8b02d4ae7834d5081d8993c6 Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 25 May 2012 12:58:40 -0400 Subject: Menu: Added a comment about which characters are checked for dividers. --- ui/jquery.ui.menu.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/jquery.ui.menu.js') diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 5a3afdaaf..8d28ee82f 100644 --- a/ui/jquery.ui.menu.js +++ b/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" ); } -- cgit v1.2.3