Skip to content
Permalink
Browse files

Selectmenu: fixed _getCreateOptions usage

  • Loading branch information
fnagel committed Feb 15, 2012
1 parent 505d16a commit 98d72c7f6d0f1c535774d4db85556626e016603c
Showing with 3 additions and 4 deletions.
  1. +3 −4 ui/jquery.ui.selectmenu.js
@@ -182,9 +182,8 @@ $.widget( "ui.selectmenu", {
this.menu.menu( "focus", null, item );
this._setSelected( item.data( "item.selectmenu" ) );

// set and transfer disabled state
this._getCreateOptions();
this._setOption( "disabled", this.options.disabled );
// set disabled state
this._setOption( "disabled", this._getCreateOptions()[ 'disabled' ] );
}
},

@@ -421,7 +420,7 @@ $.widget( "ui.selectmenu", {
},

_getCreateOptions: function() {
this.options.disabled = ( this.element.attr( 'disabled' ) ) ? true : false;
return { disabled: ( this.element.attr( 'disabled' ) ) ? true : false };
},

_readOptions: function( options ) {

0 comments on commit 98d72c7

Please sign in to comment.
You can’t perform that action at this time.