aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 caf0126d4..5f0b73e00 100644
--- a/src/attributes/val.js
+++ b/src/attributes/val.js
@@ -90,7 +90,7 @@ jQuery.extend( {
var value, option,
options = elem.options,
index = elem.selectedIndex,
- one = elem.type === "select-one" || index < 0,
+ one = elem.type === "select-one",
values = one ? null : [],
max = one ? index + 1 : options.length,
i = index < 0 ?