Permalink
Browse files

Selectmenu: Fix whitespace (trailing ws on 1 line) and lint issues (u…

…nused variables)
  • Loading branch information...
1 parent d599bf9 commit d94e217065745e9ad0638cf68d3d973ffe44035a @jzaefferer jzaefferer committed Mar 1, 2013
@@ -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" );
@@ -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 );

0 comments on commit d94e217

Please sign in to comment.