Skip to content

Commit

Permalink
Menu: Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed May 15, 2012
1 parent 233c9c4 commit 41a0e38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/jquery.ui.menu.js
Expand Up @@ -311,7 +311,7 @@ $.widget( "ui.menu", {
}, },


focus: function( event, item ) { focus: function( event, item ) {
var nested, borderTop, paddingTop, offset, scroll, elementHeight, itemHeight, focussed; var nested, borderTop, paddingTop, offset, scroll, elementHeight, itemHeight, focused;
this.blur( event, event && event.type === "focus" ); this.blur( event, event && event.type === "focus" );


if ( this._hasScroll() ) { if ( this._hasScroll() ) {
Expand All @@ -330,11 +330,11 @@ $.widget( "ui.menu", {
} }


this.active = item.first(); this.active = item.first();
focussed = this.active.children( "a" ).addClass( "ui-state-focus" ); focused = this.active.children( "a" ).addClass( "ui-state-focus" );
// only update aria-activedescendant if there's a role // only update aria-activedescendant if there's a role
// otherwise we assume focus is managed elsewhere // otherwise we assume focus is managed elsewhere
if ( this.options.role ) { if ( this.options.role ) {
this.element.attr( "aria-activedescendant", focussed.attr( "id" ) ); this.element.attr( "aria-activedescendant", focused.attr( "id" ) );
} }


// highlight active parent menu item, if any // highlight active parent menu item, if any
Expand Down

0 comments on commit 41a0e38

Please sign in to comment.