mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 09:44:56 -05:00
CSS: use isFinite in place of redundant isNumeric
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user