]> source.dussan.org Git - jquery.git/commitdiff
Shorten even further
authortimmywil <tim.willison@thisismedium.com>
Sat, 26 Mar 2011 02:57:01 +0000 (22:57 -0400)
committertimmywil <tim.willison@thisismedium.com>
Sun, 3 Apr 2011 23:13:40 +0000 (19:13 -0400)
src/attributes.js

index 295a568280d56c5dc11b8902b4f21d7a103aee87..6011c45014f2c356f83a12dcaef76312ef4e3401 100644 (file)
@@ -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 ) {