Permalink
Browse files

CSS: use isFinite in place of redundant isNumeric

  • Loading branch information...
timmywil committed Oct 18, 2015
1 parent 9090d98 commit 3689963909880ed832ac17eabf7b9260927a68d8
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css.js
View
@@ -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;
}

0 comments on commit 3689963

Please sign in to comment.