Skip to content

Commit

Permalink
Don't use extend when setting the action attrHook for IE6/7
Browse files Browse the repository at this point in the history
  • Loading branch information
timmywil committed Apr 3, 2011
1 parent 77c559c commit f578e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,15 +401,15 @@ if ( !jQuery.support.getSetAttribute ) {
});

// Action attribute in ie6/7 returns form objects
jQuery.attrHooks.action = jQuery.extend( jQuery.attrHooks.action, {
jQuery.attrHooks.action = {
get: function( elem ) {
return elem.nodeName === "FORM" ? elem.getAttributeNode("action").nodeValue : elem.getAttribute("action");
},
set: function( elem, value ) {
elem.nodeName === "FORM" ? elem.getAttributeNode("action").nodeValue = value : elem.setAttribute("action", value);
return value;
}
});
};
}

// Remove certain attrs if set to false
Expand Down

0 comments on commit f578e0f

Please sign in to comment.