]> source.dussan.org Git - jquery-ui.git/commitdiff
fixed: empty option text, thx to @outprove, see #102
authorFelix Nagel <info@felixnagel.com>
Mon, 16 Jan 2012 21:51:08 +0000 (22:51 +0100)
committerFelix Nagel <info@felixnagel.com>
Mon, 16 Jan 2012 21:51:08 +0000 (22:51 +0100)
ui/jquery.ui.selectmenu.js

index 14ff857b67f5df5969ec59a151d44b6e27ad0208..337e875f2349445e1022674abf3a48f2fdfa379d 100644 (file)
@@ -308,7 +308,7 @@ $.widget("ui.selectmenu", {
                                        thisLiAttr[ 'class' ] = this.namespace + '-state-disabled';
                                }                                       
                                var thisAAttr = {
-                                       html: selectOptionData[i].text,
+                                       html: selectOptionData[i].text || '&nbsp;',
                                        href : '#nogo',
                                        tabindex : -1,
                                        role : 'option',