aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-08-16 19:30:20 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-08-16 19:30:20 -0400
commit5d954c1b2395b0f7f9132dd76a6dd5048066db04 (patch)
tree275d149848b4020bfd339f4aaf1f8933a4b2dcdd /src/css.js
parent727d51ec9df1dadd742fc468ca3e003da172fb1b (diff)
downloadjquery-5d954c1b2395b0f7f9132dd76a6dd5048066db04.tar.gz
jquery-5d954c1b2395b0f7f9132dd76a6dd5048066db04.zip
Check for null before isNaN().
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
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;
}