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 ad0da64..cb65c0b 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