mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Selectmenu: Fix whitespace (trailing ws on 1 line) and lint issues (unused variables)
This commit is contained in:
parent
d599bf9ffd
commit
d94e217065
@ -91,7 +91,6 @@ $.each([
|
||||
element = $( settings.selector ).selectmenu(),
|
||||
button = element.selectmenu( "widget" ),
|
||||
menu = element.selectmenu( "menuWidget" ),
|
||||
selected = element.find( "option:selected" ),
|
||||
options = element.find( "option" );
|
||||
|
||||
// init menu
|
||||
|
@ -72,7 +72,6 @@ test( "refresh - change selected option", function () {
|
||||
expect( 3 );
|
||||
|
||||
var element = $( "#speed" ).selectmenu(),
|
||||
menu = element.selectmenu( "menuWidget" ).parent(),
|
||||
button = element.selectmenu( "widget" );
|
||||
|
||||
equal( element.find( "option:selected" ).text(), button.text(), "button text after init" );
|
||||
|
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@ -374,7 +374,7 @@ $.widget( "ui.selectmenu", {
|
||||
_setAria: function( item ) {
|
||||
var link = this.menuItems.eq( item.index ),
|
||||
id = link.attr( "id" );
|
||||
|
||||
|
||||
// change ARIA attr
|
||||
this.menuItems.attr( "aria-selected", false );
|
||||
link.attr( "aria-selected", true );
|
||||
|
Loading…
Reference in New Issue
Block a user