Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…nused variables)
  • Loading branch information...
commit d94e217065745e9ad0638cf68d3d973ffe44035a 1 parent d599bf9
@jzaefferer jzaefferer authored
View
1  tests/unit/selectmenu/selectmenu_core.js
@@ -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
View
1  tests/unit/selectmenu/selectmenu_methods.js
@@ -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" );
View
2  ui/jquery.ui.selectmenu.js
@@ -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 );
Please sign in to comment.
Something went wrong with that request. Please try again.