On 8/18/16, 2:37 PM, "Harbs" <[email protected]> wrote:
>React works by using a Shadow DOM and diffing the DOM to figure out if >things need to change. > >Angular works by running constant checks on the DOM and updating stuff as >needed. > >I think simply wrapping DOM elements by JS ones has WAY less overhead >than both of these approaches. > Agreed. But that is not, IMO, a clear reason to wrap the Sprite DisplayObjects. > >Re. Events: > >I think MouseEvent does not inherit from Event because it inherits from >Flash MouseEvent (being events are being subclassed rather than wrapped). IIRC, there is more to it than that, otherwise the FlexJS MouseEvent would still inherit from flash.event.Event. >The fact that MouseEvent on the JS side seems to be BrowserEvent instead, >is just weird. We spent a very long time today on the fact that Mouse >coordinates on transformed SVG elements were not working correctly. We >have a partial solution to that, but fixing it “correctly” is a whole >other topic. When we get to discussing events, one proposal is to not use Google Closure's events. -Alex
