Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Selectmenu: small fixes for lint tests

  • Loading branch information...
commit c5a449d611096988b0ae8c07a8d6bfa9618ff8d1 1 parent ff957dd
@fnagel fnagel authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.selectmenu.js
View
6 ui/jquery.ui.selectmenu.js
@@ -183,7 +183,7 @@ $.widget( "ui.selectmenu", {
this._setSelected( item.data( "item.selectmenu" ) );
// set disabled state
- this._setOption( "disabled", this._getCreateOptions()[ 'disabled' ] );
+ this._setOption( "disabled", this._getCreateOptions().disabled );
}
},
@@ -270,7 +270,7 @@ $.widget( "ui.selectmenu", {
},
_move: function( direction, event ) {
- if ( direction == "first" || direction == "last" ) {
+ if ( direction === "first" || direction === "last" ) {
// set focus manually for first or last item
this.menu.menu( "focus", event, this.menuItems[ direction ]() );
} else {
@@ -361,7 +361,7 @@ $.widget( "ui.selectmenu", {
this._setSelected( item );
this._trigger( "select", event, { item: item } );
- if ( item.index != oldIndex ) {
+ if ( item.index !== oldIndex ) {
this._trigger( "change", event, { item: item } );
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.