mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Check for null before isNaN().
This commit is contained in:
parent
727d51ec9d
commit
5d954c1b23
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user