diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-03-25 23:36:07 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-03 19:13:40 -0400 |
commit | 03da4c7ca719443d52104c7f47abffc2e312753d (patch) | |
tree | 44639058b8158a2c9af217b627aa9d4bdac344e3 /src/attributes.js | |
parent | 448111cbd432864d0ae03c70ae321e97de989e9b (diff) | |
download | jquery-03da4c7ca719443d52104c7f47abffc2e312753d.tar.gz jquery-03da4c7ca719443d52104c7f47abffc2e312753d.zip |
Style formatting
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 5 |
1 files changed, 3 insertions, 2 deletions
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 ]; |