]> source.dussan.org Git - jquery.git/commitdiff
We can just use isNaN for this check in the IE opacity code.
authorjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 14:53:29 +0000 (10:53 -0400)
committerjeresig <jeresig@gmail.com>
Mon, 27 Sep 2010 14:53:29 +0000 (10:53 -0400)
src/css.js

index b9a1c52bee1af111280d264560ec802cdee8072c..77949aebc60f56fa4237c0f61cbc738d5023a0e9 100644 (file)
@@ -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 + ")";