aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 37addf4a2..665e6ba9d 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -276,14 +276,14 @@ jQuery.extend({
options = elem.options,
values = jQuery.makeArray( value ),
i = options.length;
-
+
while ( i-- ) {
option = options[ i ];
if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
optionSet = true;
}
}
-
+
// force browsers to behave consistently when non-matching value is set
if ( !optionSet ) {
elem.selectedIndex = -1;