Skip to content

Commit

Permalink
Selectmenu: Use new uniqueId method for generating id's
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed May 31, 2012
1 parent 749c8fb commit 39532f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/jquery.ui.selectmenu.js
Expand Up @@ -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' };

Expand Down

0 comments on commit 39532f0

Please sign in to comment.