Skip to content

Commit

Permalink
We can just use isNaN for this check in the IE opacity code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Sep 27, 2010
1 parent 6dd2dc4 commit 0da700a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/css.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ if ( !jQuery.support.opacity ) {
style.zoom = 1; style.zoom = 1;


// Set the alpha filter to set the opacity // Set the alpha filter to set the opacity
var opacity = parseInt( value, 10 ) + "" === "NaN" ? var opacity = isNaN(value) ?
"" : "" :
"alpha(opacity=" + value * 100 + ")"; "alpha(opacity=" + value * 100 + ")";


Expand Down

0 comments on commit 0da700a

Please sign in to comment.