]> source.dussan.org Git - jquery.git/commitdiff
Only attempt to use the IE technique for setting opacity if the filter property exist...
authorJohn Resig <jeresig@gmail.com>
Thu, 26 Aug 2010 16:51:37 +0000 (12:51 -0400)
committerJohn Resig <jeresig@gmail.com>
Thu, 26 Aug 2010 16:51:37 +0000 (12:51 -0400)
src/css.js

index ad0da6469919b513d891712b95aba1a8c65ba41c..cb65c0ba31f936ca1d4fb1853614a27a3abed354 100644 (file)
@@ -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