royale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] hcsuk commented on issue #341: Adding listener for when a bindable style has changed
Date Fri, 09 Nov 2018 19:20:37 GMT
hcsuk commented on issue #341: Adding listener for when a bindable style has changed
URL: https://github.com/apache/royale-asjs/pull/341#issuecomment-437466684
 
 
   To do this, there would need to be a link created between the UI object (UIBase), and the
BindableCSSStyles object, so that the latter could listen out for style changes on the UIBase
object. So this would imply we still need to change UIBase.as, such that when the style is
set on it, it sets up the event listener - essentially this just moves the `styleChangeHandler`
code from UIBase into BindableCSSStyles, but still needs similar changes to be made to UIBase.
   
   An alternative would be to create a bead that does this stuff so we could keep the same
code in all the existing classes, but just have folk add a bead that would set everything
up to sort out the styles based on the changes to the UIBase object... that would be a little
more stand-alone and avoids adding code into any existing class or changing the current functionality
for anyone..

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message