window[“dialogPolyfill”].registerDialog(dialog) should do it.
> On Jan 19, 2017, at 2:01 PM, Carlos Rovira <carlosrov...@apache.org> wrote:
>
> Hi,
>
> while we already need to solve how to make dialog polyfill work, I found a
> new problem that hope you guys have already managed.
>
> I need to put the following lines in my Dialog MDL component:
>
> if (! dialog.showModal) {
> dialogPolyfill.registerDialog(dialog);
> }
>
> I have dialog var in my AS3 so this is ok, but I don't have
> "dialogPolyfill" var
> So the question is...how make FlexJS aware of "dialogPolyfil" that is setup
> by the JS loaded as an external resource so I can compile my AS3 class and
> make it work in the browser?
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira