Skip to content
Permalink
Browse files

Selectmenu: Use new uniqueId method for generating id's

  • Loading branch information...
fnagel committed May 31, 2012
1 parent 749c8fb commit 39532f0a8e70e21e33aab03f08136f662d03a4a1
Showing with 3 additions and 3 deletions.
  1. +3 −3 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' };

0 comments on commit 39532f0

Please sign in to comment.
You can’t perform that action at this time.