Skip to content

Commit 39532f0

Browse files
committed
Selectmenu: Use new uniqueId method for generating id's
1 parent 749c8fb commit 39532f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/jquery.ui.selectmenu.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ $.widget( "ui.selectmenu", {
3535
},
3636

3737
_create: function() {
38-
// get / make unique id
39-
var selectmenuId = this.element.attr( 'id' ) || 'ui-selectmenu-' + Math.random().toString( 16 ).slice( 2, 10 );
40-
38+
// make / set unique id
39+
var selectmenuId = this.element.uniqueId().attr( 'id' );
40+
4141
// array of button and menu id's
4242
this.ids = { id: selectmenuId, button: selectmenuId + '-button', menu: selectmenuId + '-menu' };
4343

0 commit comments

Comments
 (0)