diff options
author | timmywil <tim.willison@thisismedium.com> | 2011-03-25 23:10:59 -0400 |
---|---|---|
committer | timmywil <tim.willison@thisismedium.com> | 2011-04-03 19:13:40 -0400 |
commit | 448111cbd432864d0ae03c70ae321e97de989e9b (patch) | |
tree | 63f5d7878b99ccbab8c89d5af876f66dc5d531d8 /src/attributes.js | |
parent | 5caf7d837630df4ac8e8fb21c79582dc897903f5 (diff) | |
download | jquery-448111cbd432864d0ae03c70ae321e97de989e9b.tar.gz jquery-448111cbd432864d0ae03c70ae321e97de989e9b.zip |
No longer need to check for objects or string of null with the special form treatment and updates to removeAttr
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js index bfeb6c4e1..44b16825b 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -328,8 +328,7 @@ jQuery.extend({ ret = elem.getAttribute( name ); // Non-existent attributes return null, we normalize to undefined - // Instead of checking for null, we check for typeof object to catch inputs in IE6/7. Bug #7472 - return typeof ret === "object" || ret === "null" ? + return ret === null ? undefined : ret; } |