From: Felix Nagel Date: Mon, 29 Apr 2013 21:21:17 +0000 (+0200) Subject: Selectmenu: do not call _getCreateOptions directly X-Git-Tag: 1.11.0-beta.1~160^2~77 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=70a43607faf3651fec07150e0f4e7b99984835e4;p=jquery-ui.git Selectmenu: do not call _getCreateOptions directly --- diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 99c314f48..aea1b8f0f 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -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 ) {