No longer need to check for objects or string of null with the special form treatment and updates to removeAttr

This commit is contained in:
timmywil 2011-03-25 23:10:59 -04:00
parent 5caf7d8376
commit 448111cbd4

View file

@ -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;
}