aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-03-14 00:23:36 +0100
committerDave Methvin <dave.methvin@gmail.com>2013-04-03 20:51:30 -0400
commit1205103a72db407bfbc0de3d9b78f1fd6a02520c (patch)
treeb80011049028520865ec59875bb6cded54f76f3f /src/attributes.js
parent9eb838e4189c7afbd187b4663923d97a608811ef (diff)
downloadjquery-1205103a72db407bfbc0de3d9b78f1fd6a02520c.tar.gz
jquery-1205103a72db407bfbc0de3d9b78f1fd6a02520c.zip
Update grunt-contrib-jshint to 0.3.0, close gh-1204.
(cherry picked from 4adde5d14534799f3bcfac2771e1513be8a56a2f) Conflicts: src/data.js src/effects.js
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;