From cab18353a62d39699310bf8c982e897c391411a1 Mon Sep 17 00:00:00 2001 From: Oleg Date: Wed, 5 Feb 2014 10:23:49 +0400 Subject: 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 --- src/attributes/val.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/attributes') 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; } } -- cgit v1.2.3