From 5673e4bc3aa5991dfa51de5cb6d7027f2545ad03 Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 26 Aug 2010 12:51:37 -0400 Subject: [PATCH] Only attempt to use the IE technique for setting opacity if the filter property exists (otherwise fallback to the standards-compatible technique). --- src/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css.js b/src/css.js index ad0da64..cb65c0b 100644 --- a/src/css.js +++ b/src/css.js @@ -49,7 +49,7 @@ jQuery.extend({ var style = elem.style || elem, set = value !== undefined; // IE uses filters for opacity - if ( !jQuery.support.opacity && name === "opacity" ) { + if ( !jQuery.support.opacity && name === "opacity" && style.filter ) { if ( set ) { // IE has trouble with opacity if it does not have layout // Force it by setting the zoom level -- 1.7.10.4