diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-03-03 22:18:50 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-04 20:40:23 -0500 |
commit | 10efa1f5b44046aab6bcc8423322a41923faa290 (patch) | |
tree | d5a132f4700db7b562d2e43e67b70c53ee32c2b9 /src | |
parent | 279913c71b63da721fa2f118cdce150effbf773e (diff) | |
download | jquery-10efa1f5b44046aab6bcc8423322a41923faa290.tar.gz jquery-10efa1f5b44046aab6bcc8423322a41923faa290.zip |
Core: Arrays like [42] should fail .isNumeric()
Fixes #14179
Diffstat (limited to 'src')
-rw-r--r-- | src/core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 311e360aa..c494d7a60 100644 --- a/src/core.js +++ b/src/core.js @@ -216,7 +216,7 @@ jQuery.extend({ // parseFloat NaNs numeric-cast false positives (null|true|false|"") // ...but misinterprets leading-number strings, particularly hex literals ("0x...") // subtraction forces infinities to NaN - return obj - parseFloat( obj ) >= 0; + return !jQuery.isArray( obj ) && obj - parseFloat( obj ) >= 0; }, isPlainObject: function( obj ) { |