aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Serduke <davidserduke@gmail.com>2007-12-04 18:15:27 +0000
committerDavid Serduke <davidserduke@gmail.com>2007-12-04 18:15:27 +0000
commitd938c6bbd6b220f122c50f5f828b8f0cd818c168 (patch)
treee37b625506f1cf8af69c5ba695accf6270154dc3 /src
parent4d13f3701c59cac1bdfd2e826fd7dcb6148fc48e (diff)
downloadjquery-d938c6bbd6b220f122c50f5f828b8f0cd818c168.tar.gz
jquery-d938c6bbd6b220f122c50f5f828b8f0cd818c168.zip
Fixed #1438 where a filter could be set in IE but not have opacity in it. The JS error was fixed by checking to make sure 'opacity=' is in the filter before seeing what its value is.
Diffstat (limited to 'src')
-rw-r--r--src/core.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js
index bd6d929d5..5a842d5e7 100644
--- a/src/core.js
+++ b/src/core.js
@@ -1064,7 +1064,7 @@ jQuery.extend({
(parseFloat( value ).toString() == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
}
- return elem.filter ?
+ return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
(parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100).toString() :
"";
}