Check for null before isNaN().

This commit is contained in:
Dave Methvin 2011-08-16 19:30:20 -04:00
parent 727d51ec9d
commit 5d954c1b23

View File

@ -91,7 +91,7 @@ jQuery.extend({
} }
// Make sure that NaN and null values aren't set. See: #7116 // 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; return;
} }