]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectmenu: do not call _getCreateOptions directly
authorFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 21:21:17 +0000 (23:21 +0200)
committerFelix Nagel <info@felixnagel.com>
Mon, 29 Apr 2013 21:21:17 +0000 (23:21 +0200)
ui/jquery.ui.selectmenu.js

index 99c314f4841b770701fb1e663e7c0f2386534b93..aea1b8f0f4a3e1ddd7d665a14da6f8187be9899e 100644 (file)
@@ -181,7 +181,7 @@ $.widget( "ui.selectmenu", {
                this._setAria( item.data( "ui-selectmenu-item" ) );
 
                // Set disabled state
-               this._setOption( "disabled", this._getCreateOptions().disabled );
+               this._setOption( "disabled", !!this.element.attr( "disabled" ) );
        },
 
        open: function( event ) {