mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Selectmenu: simplify $.each usage in _readOptions method
This commit is contained in:
parent
aa60a9e114
commit
e6aca63a77
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({
|
||||
|
Loading…
Reference in New Issue
Block a user