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-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=b4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72;hp=5b51cc92fcb320dcb638718ea56c3f4806072c71;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 0a60b0d..0b6d21e 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); }