Right, my bad. You could do:

    export let foo = this;

or
    export let bar = doSomethingWithThis(this);

On Mar 20, 2013, at 2:48 , Kevin Smith <[email protected]> wrote:

> 
> But in modules, you are never in global scope and always in strict mode. 
> Hence, I don’t see a way to access the global object in the above manner (or 
> in any other manner, unless it refers to itself).
> 
> |this| in a module still refers the the "global" object, whatever that may be 
> in the context of the current loader.  It *could* be `window`, or not.
> 
> { Kevin }

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to