Is it only supported on classes? Is it possible to add it to variables or
functions in packages too? As an example, I think something like this will
be a common quick-and-dirty workaround for accessing JS globals.

package
{
    /**
     * @externs
     */
    public var myGlobal:Object;
}

- Josh

On Thu, Jan 19, 2017 at 10:20 AM, Alex Harui <[email protected]> wrote:

>
>
> On 1/19/17, 9:53 AM, "[email protected] on behalf of Carlos Rovira"
> <[email protected] on behalf of [email protected]>
> wrote:
>
> >Thanks for the various responses. Very helpful! :)
> >
> >I'm just downloading Alex changes, so, If I understand ok with that
> >changes, the way to use dialog polyfill from MDL swc should be to add in
> >Dialog.as something like:
> >
> >@extern
> >var dialogPolyfill;
> >
> >as other var? maybe with public?
>
> Unfortunately, there is more to it than that.  The @extern goes on a
> class.  I pushed examples to the flex-tourjs repo and am in the process of
> writing up a blurb on it.
>
> -Alex
>
>

Reply via email to