diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2012-11-27 09:53:30 -0500 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2012-11-27 09:53:30 -0500 |
commit | 1052f9cb2bad094144fa1186b0be8f477a9d4fa1 (patch) | |
tree | 2b083b4910adde1cee6f752836d7fb1ec9923b7d /src/attributes.js | |
parent | 243d4cc83cf15f30db1e09d9374c265a1513b18d (diff) | |
download | jquery-1052f9cb2bad094144fa1186b0be8f477a9d4fa1.tar.gz jquery-1052f9cb2bad094144fa1186b0be8f477a9d4fa1.zip |
save a byte
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attributes.js b/src/attributes.js index bc065481c..ffba0b1c7 100644 --- a/src/attributes.js +++ b/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; } }); }); |