Changeset 828

Show
Ignore:
Timestamp:
2007-09-15 17:43:35 (15 months ago)
Author:
alfonsoml
Message:

Remove unnecessary reference to FCK._ActiveColorPanelType #1227

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/commandclasses/fcktextcolorcommand.js

    r779 r828  
    4949FCKTextColorCommand.prototype.Execute = function( panelX, panelY, relElement ) 
    5050{ 
    51         // We must "cache" the actual panel type to be used in the SetColor method. 
    52         FCK._ActiveColorPanelType = this.Type ; 
    53  
    5451        // Show the Color Panel at the desired position. 
    5552        this._Panel.Show( panelX, panelY, relElement ) ; 
     
    5956{ 
    6057        var style = FCKStyles.GetStyle( '_FCK_' + 
    61                 ( FCK._ActiveColorPanelType == 'ForeColor' ? 'Color' : 'BackColor' ) ) ; 
     58                ( this.Type == 'ForeColor' ? 'Color' : 'BackColor' ) ) ; 
    6259 
    6360        if ( !color || color.length == 0 ) 
     
    6865                FCKStyles.ApplyStyle( style ) ; 
    6966        } 
    70  
    71         // Delete the "cached" active panel type. 
    72         delete FCK._ActiveColorPanelType ; 
    7367} 
    7468 
  • FCKeditor/trunk/_whatsnew.html

    r825 r828  
    219219                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/525">#525</a>] The union 
    220220                        if successive DIVs will work properly now if EnterMode!=div.</li> 
     221                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1227">#1227</a>] The color  
     222                        commands used an unnecessary temporary variable. Thanks to Matthias Miller</li> 
    221223        </ul> 
    222224        <h3>