Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Selectmenu: Use new uniqueId method for generating id's

  • Loading branch information...
commit 39532f0a8e70e21e33aab03f08136f662d03a4a1 1 parent 749c8fb
@fnagel fnagel authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 ui/jquery.ui.selectmenu.js
View
6 ui/jquery.ui.selectmenu.js
@@ -35,9 +35,9 @@ $.widget( "ui.selectmenu", {
},
_create: function() {
- // get / make unique id
- var selectmenuId = this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 );
-
+ // make / set unique id
+ var selectmenuId = this.element.uniqueId().attr( 'id' );
+
// array of button and menu id's
this.ids = { id: selectmenuId, button: selectmenuId + '-button', menu: selectmenuId + '-menu' };
Please sign in to comment.
Something went wrong with that request. Please try again.