Skip to content

Commit 5d954c1

Browse files
committed
Check for null before isNaN().
1 parent 727d51e commit 5d954c1

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
@@ -91,7 +91,7 @@ jQuery.extend({
9191
}
9292

9393
// Make sure that NaN and null values aren't set. See: #7116
94-
if ( type === "number" && isNaN( value ) || value == null ) {
94+
if ( value == null || type === "number" && isNaN( value ) ) {
9595
return;
9696
}
9797

0 commit comments

Comments
 (0)