diff options
author | jeresig <jeresig@gmail.com> | 2009-12-14 01:15:02 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-14 01:15:02 -0500 |
commit | b4b30cc6837dc5480f3d1a3da0cb9fe12dfc9b72 (patch) | |
tree | 1f7490dd984a5285df795d2a6285fb7b61cf6d05 /src/attributes.js | |
parent | 5b51cc92fcb320dcb638718ea56c3f4806072c71 (diff) | |
download | jquery-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.js | 2 |
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); } |