Re: Global var...
- --- In firstname.lastname@example.org, 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 */.