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] MDL - Dynamic Child Problem
Date Fri, 17 Feb 2017 16:20:00 GMT

On 2/17/17, 7:51 AM, "Josh Tynjala" <joshtynjala@gmail.com> wrote:

>I used in MDL in a JS project recently, and I found that if I created MDL
>components after the initial page load, I needed to run the following code
>once they were added to the DOM:
>if("componentHandler" in window)
>    window["componentHandler"].upgradeAllRegistered();
>My app was divided into several screens, so I simply called that whenever
>created a new screen, and all MDL components would be upgraded.
>However, I don't think this exact function is the best choice for FlexJS
>MDL components. 

Maybe the FlexJS MDL wrappers call upgradeAllRegistered in addedToParent
overrides?  Or is there more to it than that?


View raw message