Skip to content
Permalink
Browse files

No longer need to check for objects or string of null with the specia…

…l form treatment and updates to removeAttr
  • Loading branch information
timmywil
timmywil committed Mar 26, 2011
1 parent 5caf7d8 commit 448111cbd432864d0ae03c70ae321e97de989e9b
Showing with 1 addition and 2 deletions.
  1. +1 −2 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;
}

0 comments on commit 448111c

Please sign in to comment.
You can’t perform that action at this time.