diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-05-25 12:58:40 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-05-25 12:58:40 -0400 |
commit | be784b2f79e6f70a8b02d4ae7834d5081d8993c6 (patch) | |
tree | 95ce79cd811b2d96d586b3ccef9c924ffe576d1a /ui/jquery.ui.menu.js | |
parent | f11de835541d4f5530fcb962bb9e8a60fbb03ec5 (diff) | |
download | jquery-ui-be784b2f79e6f70a8b02d4ae7834d5081d8993c6.tar.gz jquery-ui-be784b2f79e6f70a8b02d4ae7834d5081d8993c6.zip |
Menu: Added a comment about which characters are checked for dividers.
Diffstat (limited to 'ui/jquery.ui.menu.js')
-rw-r--r-- | ui/jquery.ui.menu.js | 1 |
1 files changed, 1 insertions, 0 deletions
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" ); } |