From 24ab83659e3565642aac0f487ef555112601ed2b Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Sun, 18 Oct 2015 15:12:35 -0400 Subject: [PATCH] CSS: use isFinite in place of redundant isNumeric (cherry picked from commit 3689963909880ed832ac17eabf7b9260927a68d8) --- src/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css.js b/src/css.js index 6af18bd4f..cfd0cc88a 100644 --- a/src/css.js +++ b/src/css.js @@ -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; }