Re: Importing custom modules in Gjs





On Sun, Aug 5, 2012 at 6:18 PM, Florian Müllner <fmuellner gnome org> wrote:


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.

I tried also this, I made a small example at http://pastebin.com/Qb1E3sZZ
I guess is stupid question, but I can't find anything relative to that on Google :(

Thank you for the help 


Florian




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