]> source.dussan.org Git - jquery.git/commitdiff
CSS: use isFinite in place of redundant isNumeric
authorTimmy Willison <timmywillisn@gmail.com>
Sun, 18 Oct 2015 19:12:35 +0000 (15:12 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Sun, 25 Oct 2015 19:10:50 +0000 (15:10 -0400)
(cherry picked from commit 3689963909880ed832ac17eabf7b9260927a68d8)

src/css.js

index 6af18bd4f8c9c30bcd3bfcf6234b6291ac412ea8..cfd0cc88aad7aafe9cb2d4909b65570c9cf15f73 100644 (file)
@@ -330,7 +330,7 @@ jQuery.extend( {
                // Return, converting to number 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;
        }