From 0c954cb243a12e3607f88f65084847692fdb3a4f Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 12 Oct 2011 22:06:18 +0200 Subject: Selectmenu: changed this.ids to associative array --- ui/jquery.ui.selectmenu.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'ui') diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js index 05104de93..689f75255 100644 --- a/ui/jquery.ui.selectmenu.js +++ b/ui/jquery.ui.selectmenu.js @@ -41,7 +41,7 @@ $.widget( "ui.selectmenu", { var selectmenuId = this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 ); // quick array of button and menu id's - this.ids = [ selectmenuId, selectmenuId + '-button', selectmenuId + '-menu' ]; + this.ids = { id: selectmenuId, button: selectmenuId + '-button', menu: selectmenuId + '-menu' }; // set current value if ( this.options.value ) { @@ -73,14 +73,14 @@ $.widget( "ui.selectmenu", { // create button this.button = $( '', { - href: '#' + this.ids[ 0 ], + href: '#' + this.ids.id, tabindex: ( tabindex ? tabindex : this.element.attr( 'disabled' ) ? -1 : 0 ), - id: this.ids[ 1 ], + id: this.ids.button, css: { width: this.element.outerWidth() }, 'aria-disabled': this.options.disabled, - 'aria-owns': this.ids[ 2 ], + 'aria-owns': this.ids.menu, 'aria-haspopup': true }) .button({ @@ -104,9 +104,9 @@ $.widget( "ui.selectmenu", { this.menu = $( '