save a byte

This commit is contained in:
Richard Gibson
2012-11-27 09:53:30 -05:00
parent 243d4cc83c
commit 1052f9cb2b

View File

@@ -332,7 +332,7 @@ jQuery.extend({
ret = elem.getAttribute( name );
// Non-existent attributes return null, we normalize to undefined
return ret === null ?
return ret == null ?
undefined :
ret;
}
@@ -565,7 +565,7 @@ if ( !jQuery.support.hrefNormalized ) {
jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
get: function( elem ) {
var ret = elem.getAttribute( name, 2 );
return ret === null ? undefined : ret;
return ret == null ? undefined : ret;
}
});
});