mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-05-13 03:01:39 -04:00
Selectmenu: simplify $.each usage in _readOptions method
This commit is contained in:
2
ui/jquery.ui.selectmenu.js
vendored
2
ui/jquery.ui.selectmenu.js
vendored
@@ -427,7 +427,7 @@ $.widget( "ui.selectmenu", {
|
||||
|
||||
_readOptions: function( options ) {
|
||||
var data = [];
|
||||
$.each( options, function( index, item ) {
|
||||
options.each( function( index, item ) {
|
||||
var option = $( item ),
|
||||
optgroup = option.parent( "optgroup" );
|
||||
data.push({
|
||||
|
||||
Reference in New Issue
Block a user