aboutsummaryrefslogtreecommitdiffstats
path: root/src/attributes.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-14 01:15:02 -0500
committerjeresig <jeresig@gmail.com>2009-12-14 01:15:02 -0500
commitb4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72 (patch)
tree1f7490dd984a5285df795d2a6285fb7b61cf6d05 /src/attributes.js
parent5b51cc92fcb320dcb638718ea56c3f4806072c71 (diff)
downloadjquery-b4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72.tar.gz
jquery-b4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72.zip
Disable getting values using the .attr() function shortcut until the full implications of which can be explored.
Diffstat (limited to 'src/attributes.js')
-rw-r--r--src/attributes.js2
1 files changed, 1 insertions, 1 deletions
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);
}