Skip to content
Permalink
Browse files

Shorten even further

  • Loading branch information
timmywil
timmywil committed Mar 26, 2011
1 parent 479b28f commit 56014a1a0089be9d8d44c286ce66fc9d2066acd7
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 ) {

0 comments on commit 56014a1

Please sign in to comment.
You can’t perform that action at this time.