From 5d954c1b2395b0f7f9132dd76a6dd5048066db04 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Tue, 16 Aug 2011 19:30:20 -0400 Subject: [PATCH] Check for null before isNaN(). --- src/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css.js b/src/css.js index e5a93fce1..a4ca555ef 100644 --- a/src/css.js +++ b/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; } -- 2.39.5