diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-10-18 15:12:35 -0400 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-10-18 15:12:42 -0400 |
commit | 3689963909880ed832ac17eabf7b9260927a68d8 (patch) | |
tree | 7ac048af5fe886bd64bb2b0e7a53247caaab06cc | |
parent | 9090d98439f8dc449beafee98f8ff35cfb4f9116 (diff) | |
download | jquery-3689963909880ed832ac17eabf7b9260927a68d8.tar.gz jquery-3689963909880ed832ac17eabf7b9260927a68d8.zip |
CSS: use isFinite in place of redundant isNumeric
-rw-r--r-- | src/css.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js index 3ab0d2f01..4fbc6745e 100644 --- a/src/css.js +++ b/src/css.js @@ -306,7 +306,7 @@ jQuery.extend( { // Make numeric if forced or a qualifier was provided and val looks numeric if ( extra === "" || extra ) { num = parseFloat( val ); - return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; + return extra === true || isFinite( num ) ? num || 0 : val; } return val; } |