Selectmenu: fixed small regression which added unwanted, empty optgroup to every menu

This commit is contained in:
Felix Nagel 2012-04-01 22:38:16 +02:00
parent 4a9e26c68e
commit 1092551e21

View File

@ -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