Skip to content
Permalink
Browse files

Attrs: Simplify an option hook

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

Fixes #14756
  • Loading branch information...
markelog committed Feb 5, 2014
1 parent cd4e25e commit cab18353a62d39699310bf8c982e897c391411a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/attributes/val.js
@@ -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;
}
}

0 comments on commit cab1835

Please sign in to comment.
You can’t perform that action at this time.