Skip to content

Commit 24ab836

Browse files
timmywilgibson042
authored andcommitted
CSS: use isFinite in place of redundant isNumeric
(cherry picked from commit 3689963)
1 parent 0b6846c commit 24ab836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ jQuery.extend( {
330330
// Return, converting to number if forced or a qualifier was provided and val looks numeric
331331
if ( extra === "" || extra ) {
332332
num = parseFloat( val );
333-
return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
333+
return extra === true || isFinite( num ) ? num || 0 : val;
334334
}
335335
return val;
336336
}

0 commit comments

Comments
 (0)