Skip to content
Permalink
Browse files

Check for null before isNaN().

  • Loading branch information...
dmethvin committed Aug 16, 2011
1 parent 727d51e commit 5d954c1b2395b0f7f9132dd76a6dd5048066db04
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/css.js
@@ -91,7 +91,7 @@ jQuery.extend({
}

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

0 comments on commit 5d954c1

Please sign in to comment.
You can’t perform that action at this time.