From: jeresig Date: Mon, 14 Dec 2009 06:15:02 +0000 (-0500) Subject: Disable getting values using the .attr() function shortcut until the full implication... X-Git-Tag: 1.4a2~34 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72;p=jquery.git Disable getting values using the .attr() function shortcut until the full implications of which can be explored. --- diff --git a/src/attributes.js b/src/attributes.js index 0a60b0d74..0b6d21ec1 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -221,7 +221,7 @@ jQuery.extend({ return undefined; } - if ( name in jQuery.attrFn ) { + if ( name in jQuery.attrFn && value !== undefined ) { return jQuery(elem)[name](value); }