From: jeresig Date: Mon, 27 Sep 2010 14:53:29 +0000 (-0400) Subject: We can just use isNaN for this check in the IE opacity code. X-Git-Tag: 1.4.3rc1~45 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0da700a4d03c1c43e75e3ab7f8e719e13c7e444a;p=jquery.git We can just use isNaN for this check in the IE opacity code. --- 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 + ")";