mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Attrs: Simplify an option hook
Since getter was removed in fdd78fad19
there is no longer a need to wrap option element in order to get its value
Fixes #14756
This commit is contained in:
parent
cd4e25e991
commit
cab18353a6
@ -117,7 +117,7 @@ jQuery.extend({
|
||||
|
||||
while ( i-- ) {
|
||||
option = options[ i ];
|
||||
if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
|
||||
if ( (option.selected = jQuery.inArray( option.value, values ) >= 0) ) {
|
||||
optionSet = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user