CSS: use isFinite in place of redundant isNumeric

(cherry picked from commit 3689963909)
This commit is contained in:
Timmy Willison 2015-10-18 15:12:35 -04:00 committed by Richard Gibson
parent 0b6846c6b7
commit 24ab83659e

View 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;
}