Selectmenu: Fix whitespace (trailing ws on 1 line) and lint issues (unused variables)

This commit is contained in:
Jörn Zaefferer 2013-03-01 17:18:03 +01:00
parent d599bf9ffd
commit d94e217065
3 changed files with 1 additions and 3 deletions

View File

@ -91,7 +91,6 @@ $.each([
element = $( settings.selector ).selectmenu(), element = $( settings.selector ).selectmenu(),
button = element.selectmenu( "widget" ), button = element.selectmenu( "widget" ),
menu = element.selectmenu( "menuWidget" ), menu = element.selectmenu( "menuWidget" ),
selected = element.find( "option:selected" ),
options = element.find( "option" ); options = element.find( "option" );
// init menu // init menu

View File

@ -72,7 +72,6 @@ test( "refresh - change selected option", function () {
expect( 3 ); expect( 3 );
var element = $( "#speed" ).selectmenu(), var element = $( "#speed" ).selectmenu(),
menu = element.selectmenu( "menuWidget" ).parent(),
button = element.selectmenu( "widget" ); button = element.selectmenu( "widget" );
equal( element.find( "option:selected" ).text(), button.text(), "button text after init" ); equal( element.find( "option:selected" ).text(), button.text(), "button text after init" );

View File

@ -374,7 +374,7 @@ $.widget( "ui.selectmenu", {
_setAria: function( item ) { _setAria: function( item ) {
var link = this.menuItems.eq( item.index ), var link = this.menuItems.eq( item.index ),
id = link.attr( "id" ); id = link.attr( "id" );
// change ARIA attr // change ARIA attr
this.menuItems.attr( "aria-selected", false ); this.menuItems.attr( "aria-selected", false );
link.attr( "aria-selected", true ); link.attr( "aria-selected", true );