diff options
Diffstat (limited to 'bower_components/jquery/src/attributes/val.js')
-rw-r--r-- | bower_components/jquery/src/attributes/val.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bower_components/jquery/src/attributes/val.js b/bower_components/jquery/src/attributes/val.js index 42ef3234..4a1358a6 100644 --- a/bower_components/jquery/src/attributes/val.js +++ b/bower_components/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; }; } |