flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] Extending SimpleCSSValuesImpl
Date Sun, 30 Oct 2016 14:06:52 GMT

On 10/30/16, 4:23 AM, "yishayw" <yishayjobs@hotmail.com> wrote:

>Is there a reason why SimpleCSSValuesImpl.perInstanceStyles is static? It
>makes extending SimpleCSSValuesImpl difficult. Since there's typically
>one such instance per app is there any harm in making it a dynamic
>That will allow derived classes to simply push new values upon
>and make adding a new style property to an app easier.

Not sure I understand, but you can try it and see what happens.  I think I
set it up as static because that way you don't have to have a reference to
the shared instance in order to change it.  But maybe it is easy enough to
use ValuesManager to get there.


View raw message