Hi,
I'm working with the FontAwesomeIcon component and I have a couple of questions 
that I'm sure someone can answer for me.
There are several properties that use toggleClass [1] and others use addClass 
and removeClass. For me, both methods are equivalent, is one better?

On the other hand, there are several properties whose implementation, for me, 
is incomplete (rotation [2] and relativeSize): It eliminates the class to be 
added, in case it exists, but the possible previous value [3] is not 
eliminated. Do you know if Is this a mistake that should be corrected?
Thx.

[1]
public function set border(value:Boolean):void
{
    _border = value;
    toggleClass('fa-border', _border);
}

[2]
public function set rotation(value:String):void
{
    removeClass('fa-rotate-' + value); //****
    _rotation = value;
    addClass('fa-rotate-' + value);
}

[3]
public function set rotation(value:String):void
{
    removeClass('fa-rotate-' + _rotation); //***** Add?

    removeClass('fa-rotate-' + value);
    _rotation = value;
    addClass('fa-rotate-' + value);
}

Hiedra

Reply via email to