summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Nagel <info@felixnagel.com>2011-10-18 01:18:11 +0200
committerFelix Nagel <info@felixnagel.com>2011-10-18 01:18:11 +0200
commit4649f04279f4121b5f27ccb6c622b6ace55206e1 (patch)
tree58295a23d7bb9a359f2bbb581dd47586f90fa9a8
parenta26f7ed6ec28e5b8a27e8654b34bf0d2e7888a09 (diff)
downloadjquery-ui-4649f04279f4121b5f27ccb6c622b6ace55206e1.tar.gz
jquery-ui-4649f04279f4121b5f27ccb6c622b6ace55206e1.zip
id handling (follow-up), thx to @thg2k, see #176
-rw-r--r--ui/jquery.ui.selectmenu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.selectmenu.js b/ui/jquery.ui.selectmenu.js
index 4f9a16a96..c916c02c8 100644
--- a/ui/jquery.ui.selectmenu.js
+++ b/ui/jquery.ui.selectmenu.js
@@ -38,8 +38,8 @@ $.widget("ui.selectmenu", {
var self = this, o = this.options;
// set a default id value, generate a new random one if not set by developer
- var selectmenuId = this.element.attr( 'id' ).replace(':', '\\:') || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 );
-
+ var selectmenuId = (this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 )).replace(':', '\\:');
+
// quick array of button and menu id's
this.ids = [ selectmenuId, selectmenuId + '-button', selectmenuId + '-menu' ];