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:
Oleg 2014-02-05 10:23:49 +04:00
parent cd4e25e991
commit cab18353a6

View File

@ -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;
}
}