Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Selectmenu: Simplify _getCreateOptions implementation

  • Loading branch information...
commit b15dc8e3c582a539aaad988b96f6d7b89927edf5 1 parent 51bd6f8
Jörn Zaefferer jzaefferer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ui/jquery.ui.selectmenu.js
2  ui/jquery.ui.selectmenu.js
View
@@ -420,7 +420,7 @@ $.widget( "ui.selectmenu", {
},
_getCreateOptions: function() {
- return { disabled: ( this.element.attr( 'disabled' ) ) ? true : false };
+ return { disabled: !!this.element.attr( 'disabled' ) };
},
_readOptions: function( options ) {
Please sign in to comment.
Something went wrong with that request. Please try again.