summaryrefslogtreecommitdiffstats
path: root/js/vendor/jquery/src/attributes/val.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/jquery/src/attributes/val.js')
-rw-r--r--js/vendor/jquery/src/attributes/val.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/js/vendor/jquery/src/attributes/val.js b/js/vendor/jquery/src/attributes/val.js
index 42ef32343..4a1358a65 100644
--- a/js/vendor/jquery/src/attributes/val.js
+++ b/js/vendor/jquery/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;
};
}