Skip to content
Permalink
Browse files

save a byte

  • Loading branch information
gibson042 committed Nov 27, 2012
1 parent 243d4cc commit 1052f9cb2bad094144fa1186b0be8f477a9d4fa1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/attributes.js
@@ -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;
}
});
});

0 comments on commit 1052f9c

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