OSDN Git Service

Version 0.6.195, add opacity-fix for IE8.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 06_XNodeCSS.js
index a951a50..28e337d 100644 (file)
@@ -278,7 +278,9 @@ function X_Node_CSS_objToCssText( that, skipFilter ){
        
        if( filterFix ){
                v = X_Node_CSS_objToIEFilterText( that, filterFix );
-               if( v ) css[ ++n ] = 'filter:' + v;
+               if( v ){
+                       css[ ++n ] = 'filter:' + v;
+               };
                skipFilter = skipFilter && v;
        } else {
                skipFilter = false;
@@ -584,6 +586,7 @@ function X_Node_CSS_setStyle( css, flags, name, newValue ){
                        return flags;
                        
                case 'opacity' :
+                       flags |= X_NodeFlags_IE8_OPACITY_FIX;
                        // すでに visibility:hidden で invisible
                        if( flags & X_NodeFlags_STYLE_IS_INVISIBLE && css[ 'visibility' ] === 'hidden' ) return flags;
                        newValue == 0 ? // 0 or "0"