aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-25 12:58:40 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-25 12:58:40 -0400
commitbe784b2f79e6f70a8b02d4ae7834d5081d8993c6 (patch)
tree95ce79cd811b2d96d586b3ccef9c924ffe576d1a
parentf11de835541d4f5530fcb962bb9e8a60fbb03ec5 (diff)
downloadjquery-ui-be784b2f79e6f70a8b02d4ae7834d5081d8993c6.tar.gz
jquery-ui-be784b2f79e6f70a8b02d4ae7834d5081d8993c6.zip
Menu: Added a comment about which characters are checked for dividers.
-rw-r--r--ui/jquery.ui.menu.js1
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" );
}