diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2013-09-05 14:04:11 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-09-12 16:42:18 -0400 |
commit | 0bc0a69026ce4c1ac570a729d3c975a4a55d0ff4 (patch) | |
tree | e8c1376e98de4128b5e4ffafb19abfab5170574b /src/css.js | |
parent | 3a552cdfa76e773cbd3e8c2ad4bb6be7a0569117 (diff) | |
download | jquery-0bc0a69026ce4c1ac570a729d3c975a4a55d0ff4.tar.gz jquery-0bc0a69026ce4c1ac570a729d3c975a4a55d0ff4.zip |
Ref #14313: NaN detection. Close gh-1352.
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js index 2a18aa4fc..a4d0b55df 100644 --- a/src/css.js +++ b/src/css.js @@ -272,8 +272,8 @@ jQuery.extend({ type = "number"; } - // Make sure that NaN and null values aren't set. See: #7116 - if ( value == null || type === "number" && isNaN( value ) ) { + // Make sure that null and NaN values aren't set. See: #7116 + if ( value == null || value !== value ) { return; } |