Commit 1052f9cb authored by Richard Gibson's avatar Richard Gibson

save a byte

parent 243d4cc8
...@@ -332,7 +332,7 @@ jQuery.extend({ ...@@ -332,7 +332,7 @@ jQuery.extend({
ret = elem.getAttribute( name ); ret = elem.getAttribute( name );
// Non-existent attributes return null, we normalize to undefined // Non-existent attributes return null, we normalize to undefined
return ret === null ? return ret == null ?
undefined : undefined :
ret; ret;
} }
...@@ -565,7 +565,7 @@ if ( !jQuery.support.hrefNormalized ) { ...@@ -565,7 +565,7 @@ if ( !jQuery.support.hrefNormalized ) {
jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], { jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
get: function( elem ) { get: function( elem ) {
var ret = elem.getAttribute( name, 2 ); var ret = elem.getAttribute( name, 2 );
return ret === null ? undefined : ret; return ret == null ? undefined : ret;
} }
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment