Commit 5673e4bc authored by John Resig's avatar John Resig

Only attempt to use the IE technique for setting opacity if the filter...

Only attempt to use the IE technique for setting opacity if the filter property exists (otherwise fallback to the standards-compatible technique).
parent dc060f08
...@@ -49,7 +49,7 @@ jQuery.extend({ ...@@ -49,7 +49,7 @@ jQuery.extend({
var style = elem.style || elem, set = value !== undefined; var style = elem.style || elem, set = value !== undefined;
// IE uses filters for opacity // IE uses filters for opacity
if ( !jQuery.support.opacity && name === "opacity" ) { if ( !jQuery.support.opacity && name === "opacity" && style.filter ) {
if ( set ) { if ( set ) {
// IE has trouble with opacity if it does not have layout // IE has trouble with opacity if it does not have layout
// Force it by setting the zoom level // Force it by setting the zoom level
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment