From: timmywil Date: Sat, 26 Mar 2011 03:36:07 +0000 (-0400) Subject: Style formatting X-Git-Tag: 1.6b1~27^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03da4c7ca719443d52104c7f47abffc2e312753d;p=jquery.git Style formatting --- diff --git a/src/attributes.js b/src/attributes.js index 44b16825b..c5f9dfbb5 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -290,7 +290,7 @@ jQuery.extend({ } if ( pass && name in jQuery.attrFn ) { - return jQuery(elem)[name](value); + return jQuery( elem )[ name ]( value ); } var ret, hooks, @@ -299,7 +299,8 @@ jQuery.extend({ // 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 + // Get the appropriate hook, or the formHook + // if getSetAttribute is not supported and we have form objects in IE6/7 hooks = formHook && ( name === "name" || elem.nodeName === "FORM" ) ? formHook( name ) : jQuery.attrHooks[ name ];