From b4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72 Mon Sep 17 00:00:00 2001 From: jeresig Date: Mon, 14 Dec 2009 01:15:02 -0500 Subject: [PATCH] Disable getting values using the .attr() function shortcut until the full implications of which can be explored. --- src/attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.7.10.4