]> source.dussan.org Git - jquery.git/commitdiff
Check for null before isNaN(). 464/head
authorDave Methvin <dave.methvin@gmail.com>
Tue, 16 Aug 2011 23:30:20 +0000 (19:30 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 16 Aug 2011 23:30:20 +0000 (19:30 -0400)
src/css.js

index e5a93fce1297c1bf81fc5c6ddc4788bbbd1eb0d8..a4ca555ef5255ca2965d02951c50141a7f4bc4bd 100644 (file)
@@ -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;
                        }