On 2/15/17, 10:04 AM, "piotrz" <piotrzarzyck...@gmail.com> wrote:
>Alex, > >Yes settings "style" wouldn't change some style property itself, but will >register couple of times listener - shouldn't we avoid it ? > >What do you mean saying "IMO, styleChangeHandler should be removed from >UIBase." - Where it should be placed exactly ? Maybe in a bead that looks for changes. That's sort of how LayoutChangeNotifier attempts to work. Another possibility is that a bead could encapsulate the changing of the styles. The host strand in theory only contains code for convenience. The beads should be talking to each other. In this case, the BindableCSSStyles bead and on the AS side a SolidBackgroundBead need to have a conversation. On the JS side, maybe BindableCSSStyles should just write to the element's style object. We tried to purposefully leave out a lot of dynamic behavior in order to see how small and fast Basic could be and if we can then add on dynamic behavior some other way. The Express package should bundle the dynamic behavior. So we are only now getting serious about how to implement this dynamic behavior, so there is definitely room for improvement. My 2 cents, -Alex