We can just use isNaN for this check in the IE opacity code.

This commit is contained in:
jeresig 2010-09-27 10:53:29 -04:00
parent 6dd2dc4270
commit 0da700a4d0

View 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 + ")";