aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.selectmenu.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index bbeb51669..50a2b88d1 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/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 ) {