aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-27 10:53:29 -0400
committerjeresig <jeresig@gmail.com>2010-09-27 10:53:29 -0400
commit0da700a4d03c1c43e75e3ab7f8e719e13c7e444a (patch)
treef11d83046c8772720a692c49101797577e04b037 /src
parent6dd2dc42700fff681513aa5a3bdc438bd48f4ba0 (diff)
downloadjquery-0da700a4d03c1c43e75e3ab7f8e719e13c7e444a.tar.gz
jquery-0da700a4d03c1c43e75e3ab7f8e719e13c7e444a.zip
We can just use isNaN for this check in the IE opacity code.
Diffstat (limited to 'src')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css.js b/src/css.js
index b9a1c52be..77949aebc 100644
--- a/src/css.js
+++ b/src/css.js
@@ -187,7 +187,7 @@ if ( !jQuery.support.opacity ) {
style.zoom = 1;
// Set the alpha filter to set the opacity
- var opacity = parseInt( value, 10 ) + "" === "NaN" ?
+ var opacity = isNaN(value) ?
"" :
"alpha(opacity=" + value * 100 + ")";