git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dd2dc4
)
We can just use isNaN for this check in the IE opacity code.
author
jeresig
<jeresig@gmail.com>
Mon, 27 Sep 2010 14:53:29 +0000
(10:53 -0400)
committer
jeresig
<jeresig@gmail.com>
Mon, 27 Sep 2010 14:53:29 +0000
(10:53 -0400)
src/css.js
patch
|
blob
|
history
diff --git
a/src/css.js
b/src/css.js
index
b9a1c52
..
77949ae
100644
(file)
--- 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 + ")";