aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes/val.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-04-25 18:26:36 -0400
committerDave Methvin <dave.methvin@gmail.com>2014-06-10 23:28:14 -0400
commitd837f119c3729565103005d5d7fa89e1dd8110cb (patch)
tree03f41c64a16faab49698d7fa6c2519c79874d706 /src/attributes/val.js
parentff9dcfb0c4238d405af92cbd4ac27e0a36c6ff0c (diff)
downloadjquery-d837f119c3729565103005d5d7fa89e1dd8110cb.tar.gz
jquery-d837f119c3729565103005d5d7fa89e1dd8110cb.zip
Support: clean up comments and Support notation
Closes gh-1577
Diffstat (limited to 'src/attributes/val.js')
-rw-r--r--src/attributes/val.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/attributes/val.js b/src/attributes/val.js
index 42ef32343..4a1358a65 100644
--- a/src/attributes/val.js
+++ b/src/attributes/val.js
@@ -22,9 +22,9 @@ jQuery.fn.extend({
ret = elem.value;
return typeof ret === "string" ?
- // handle most common string cases
+ // Handle most common string cases
ret.replace(rreturn, "") :
- // handle cases where value is null/undef or number
+ // Handle cases where value is null/undef or number
ret == null ? "" : ret;
}
@@ -132,7 +132,7 @@ jQuery.extend({
}
}
- // force browsers to behave consistently when non-matching value is set
+ // Force browsers to behave consistently when non-matching value is set
if ( !optionSet ) {
elem.selectedIndex = -1;
}
@@ -153,8 +153,6 @@ jQuery.each([ "radio", "checkbox" ], function() {
};
if ( !support.checkOn ) {
jQuery.valHooks[ this ].get = function( elem ) {
- // Support: Webkit
- // "" is returned instead of "on" if a value isn't specified
return elem.getAttribute("value") === null ? "on" : elem.value;
};
}