Selectmenu: small fixes for lint tests

This commit is contained in:
Felix Nagel 2012-05-16 20:41:24 +02:00
parent ff957dd287
commit c5a449d611

View File

@ -183,7 +183,7 @@ $.widget( "ui.selectmenu", {
this._setSelected( item.data( "item.selectmenu" ) ); this._setSelected( item.data( "item.selectmenu" ) );
// set disabled state // 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 ) { _move: function( direction, event ) {
if ( direction == "first" || direction == "last" ) { if ( direction === "first" || direction === "last" ) {
// set focus manually for first or last item // set focus manually for first or last item
this.menu.menu( "focus", event, this.menuItems[ direction ]() ); this.menu.menu( "focus", event, this.menuItems[ direction ]() );
} else { } else {
@ -361,7 +361,7 @@ $.widget( "ui.selectmenu", {
this._setSelected( item ); this._setSelected( item );
this._trigger( "select", event, { item: item } ); this._trigger( "select", event, { item: item } );
if ( item.index != oldIndex ) { if ( item.index !== oldIndex ) {
this._trigger( "change", event, { item: item } ); this._trigger( "change", event, { item: item } );
} }
}, },