mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
CSS: use isFinite in place of redundant isNumeric
(cherry picked from commit 3689963909
)
This commit is contained in:
parent
0b6846c6b7
commit
24ab83659e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user