Re: Importing custom modules in Gjs




On Aug 5, 2012 4:02 PM, "alex diavatis" <alexis diavatis gmail com> wrote:
> let black_c = new Clutter.Color( {red:0, blue:0, green:0, alpha:255} );
>
> and I cannot find a way to call this variable from my main.js file.

Variables declared with "let" are limited in scope; use "var" or "const" if you want to access it from a different module.

Florian



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]