Selectmenu: fixed _getCreateOptions usage

This commit is contained in:
Felix Nagel 2012-02-15 22:16:18 +01:00
parent 505d16a3e9
commit 98d72c7f6d

View File

@ -182,9 +182,8 @@ $.widget( "ui.selectmenu", {
this.menu.menu( "focus", null, item ); this.menu.menu( "focus", null, item );
this._setSelected( item.data( "item.selectmenu" ) ); this._setSelected( item.data( "item.selectmenu" ) );
// set and transfer disabled state // set disabled state
this._getCreateOptions(); this._setOption( "disabled", this._getCreateOptions()[ 'disabled' ] );
this._setOption( "disabled", this.options.disabled );
} }
}, },
@ -421,7 +420,7 @@ $.widget( "ui.selectmenu", {
}, },
_getCreateOptions: function() { _getCreateOptions: function() {
this.options.disabled = ( this.element.attr( 'disabled' ) ) ? true : false; return { disabled: ( this.element.attr( 'disabled' ) ) ? true : false };
}, },
_readOptions: function( options ) { _readOptions: function( options ) {