aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes
diff options
context:
space:
mode:
authorOleg <markelog@gmail.com>2014-02-05 10:23:49 +0400
committerOleg <markelog@gmail.com>2014-02-05 10:46:00 +0400
commitcab18353a62d39699310bf8c982e897c391411a1 (patch)
tree4cf782deade29c998c9b2f915cd26e79fba314ab /src/attributes
parentcd4e25e991898bf07ce82fe4ab3d60c32b4a5fc9 (diff)
downloadjquery-cab18353a62d39699310bf8c982e897c391411a1.tar.gz
jquery-cab18353a62d39699310bf8c982e897c391411a1.zip
Attrs: Simplify an option hook
Since getter was removed in fdd78fad19ea3390cd96971cd29430e36378d137 there is no longer a need to wrap option element in order to get its value Fixes #14756
Diffstat (limited to 'src/attributes')
-rw-r--r--src/attributes/val.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes/val.js b/src/attributes/val.js
index ca5fa0838..6d6b8ea7c 100644
--- a/src/attributes/val.js
+++ b/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;
}
}