From 7345e4304884021f7cfc499b30cc2147f9501bdb Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Thu, 24 May 2012 18:41:32 +0200 Subject: [PATCH] Selectmenu: make use of Menu option 'role' --- ui/jquery.ui.selectmenu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index ba3e208b2..73ab01cee 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -148,10 +148,10 @@ $.widget( "ui.selectmenu", { } } that.focus = item.index; - } - }) - // change ARIA role - .attr( 'role', 'listbox' ); + }, + // set ARIA role + role: 'listbox' + }); // change menu styles? if ( this.options.dropdown ) {