aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authortimmywil <tim.willison@thisismedium.com>2011-05-07 22:01:10 -0400
committertimmywil <tim.willison@thisismedium.com>2011-05-07 22:01:10 -0400
commit18b1cf2942cc082c1c97a2ac9bc33ad77f42d775 (patch)
tree6e573b7cfeda188cb0e27205254b9cbd2c955086 /src/attributes.js
parent90f37aaf7aa7c6da96ab15488b63b2eb45a2e799 (diff)
downloadjquery-18b1cf2942cc082c1c97a2ac9bc33ad77f42d775.tar.gz
jquery-18b1cf2942cc082c1c97a2ac9bc33ad77f42d775.zip
Remove value check from formHook; other elements can use value hook
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/attributes.js b/src/attributes.js
index 4d1644706..c207a001c 100644
--- a/src/attributes.js
+++ b/src/attributes.js
@@ -495,9 +495,6 @@ if ( !jQuery.support.getSetAttribute ) {
formHook = jQuery.attrHooks.name = jQuery.attrHooks.value = jQuery.valHooks.button = {
get: function( elem, name ) {
var ret;
- if ( name === "value" && !jQuery.nodeName( elem, "button" ) ) {
- return elem.getAttribute( name );
- }
ret = elem.getAttributeNode( name );
// Return undefined if nodeValue is empty string
return ret && ret.nodeValue !== "" ?