Re: Global var...
- --- In email@example.com, Douglas Crockford <douglas@...> wrote:
>Ops... so simple! :)
> /*global FOO*/
> FOO = YAHOO.namespace("foo");
I missed that because I deleted 'var' and I get "'FOO' is undefined.".
The tricky part is adding /*global FOO */.