Commit cab18353 authored by Oleg's avatar Oleg

Attrs: Simplify an option hook

Since getter was removed in fdd78fad
there is no longer a need to wrap option element in order to get its value

Fixes #14756
parent cd4e25e9
...@@ -117,7 +117,7 @@ jQuery.extend({ ...@@ -117,7 +117,7 @@ jQuery.extend({
while ( i-- ) { while ( i-- ) {
option = options[ 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; optionSet = true;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment