OSDN Git Service

Version 0.6.144, fix Gesture for iOS4, fix Node.css, fix X.Net.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 06_XNodeCSS.js
index 4f22524..31fee5c 100644 (file)
@@ -524,8 +524,9 @@ Node.prototype[ 'css' ] = function( nameOrObj /* orUnitID, valuOrUnitOrName */ )
                        if( css[ name ] === v ) continue;
                        flags = X_Node_CSS_setStyle( css, flags, name, v );
                };
-               this[ '_flags' ] |= X_Node_State.DIRTY_CSS | X_Node_State.OLD_CSSTEXT;
-               this[ '_flags' ] & X_Node_State.IN_TREE && X_Node_reserveUpdate();
+               flags |= X_Node_State.DIRTY_CSS | X_Node_State.OLD_CSSTEXT;
+               this[ '_flags' ] = flags;
+               flags & X_Node_State.IN_TREE && X_Node_reserveUpdate();
                delete this[ '_cssText' ];
                return this;
        } else
@@ -560,6 +561,7 @@ function X_Node_CSS_setStyle( css, flags, name, newValue ){
        
        switch( name ){
                case 'display' :
+                       console.log( newValue );
                        newValue === 'none' ? ( flags |= X_Node_State.STYLE_IS_DISPLAY_NONE ) : ( flags &= ~X_Node_State.STYLE_IS_DISPLAY_NONE );
                        return flags;