diff options
author | Felix Nagel <info@felixnagel.com> | 2012-04-01 22:38:16 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2012-04-01 22:38:16 +0200 |
commit | 1092551e212dde89b24198a9b9528083fc7240a7 (patch) | |
tree | a22edfca397497b75d5279d73a706bab0efa51b2 /ui/jquery.ui.selectmenu.js | |
parent | 4a9e26c68e3443253174f927f4f741d706402032 (diff) | |
download | jquery-ui-1092551e212dde89b24198a9b9528083fc7240a7.tar.gz jquery-ui-1092551e212dde89b24198a9b9528083fc7240a7.zip |
Selectmenu: fixed small regression which added unwanted, empty optgroup to every menu
Diffstat (limited to 'ui/jquery.ui.selectmenu.js')
-rw-r--r-- | ui/jquery.ui.selectmenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 98c8c77c2..ea4d79aa0 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -244,7 +244,7 @@ $.widget( "ui.selectmenu", { currentOptgroup = ""; $.each( items, function( index, item ) { - if ( item.optgroup !== currentOptgroup ) { + if ( item.optgroup != currentOptgroup ) { $( '<li />', { 'class': 'ui-selectmenu-optgroup' + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? ' ui-state-disabled' : '' ), html: item.optgroup |