From 1092551e212dde89b24198a9b9528083fc7240a7 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Sun, 1 Apr 2012 22:38:16 +0200 Subject: [PATCH] Selectmenu: fixed small regression which added unwanted, empty optgroup to every menu --- ui/jquery.ui.selectmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { $( '
  • ', { 'class': 'ui-selectmenu-optgroup' + ( item.element.parent( "optgroup" ).attr( "disabled" ) ? ' ui-state-disabled' : '' ), html: item.optgroup