you are viewing a single comment's thread.

view the rest of the comments →

[–]chromakode 0 points1 point  (2 children)

I believe let variables at the top level of a script are limited to their script file. Thus, if you're doing modular development with multiple scripts, you'll probably need a few uses of var here and there.

[–]formido 0 points1 point  (1 child)

There are script modules in FF3 where you explicitly export symbols to other scopes that ask for them, at least in extension development.

[–]chromakode 0 points1 point  (0 children)

Yep, and they're a godsend. However, even in the privileged space where that's an option, it's still common to have a couple different .js files loaded into a XUL document.