diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-03-25 22:57:01 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-03 19:13:40 -0400 |
commit | 56014a1a0089be9d8d44c286ce66fc9d2066acd7 (patch) | |
tree | 47d9a0fe178db563b0a5b7a9eae1ed5a6e5596c8 /src/attributes.js | |
parent | 479b28fb6aa7ec5619e1d14c4b0578b9464d5f2b (diff) | |
download | jquery-56014a1a0089be9d8d44c286ce66fc9d2066acd7.tar.gz jquery-56014a1a0089be9d8d44c286ce66fc9d2066acd7.zip |
Shorten even further
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js index 295a56828..6011c4501 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -295,13 +295,13 @@ jQuery.extend({ var ret, hooks, notxml = nType !== 1 || !jQuery.isXMLDoc( elem ), - isFormObjects = !jQuery.support.getSetAttribute && ( name === "name" || elem.nodeName === "FORM" ); + isFormObjects = formHook && ( name === "name" || elem.nodeName === "FORM" ); // Normalize the name if needed name = notxml && jQuery.attrFix[ name ] || name; // Get the appropriate hook, or the formHook if getSetAttribute is not supported and we have form objects in IE6/7 - hooks = isFormObjects && formHook ? formHook( name ) : jQuery.attrHooks[ name ]; + hooks = isFormObjects ? formHook( name ) : jQuery.attrHooks[ name ]; if ( value !== undefined ) { |