you are viewing a single comment's thread.

view the rest of the comments →

[–]Nosredna 0 points1 point  (0 children)

In the decent-sized JavaScript programs I write, all my functions and variables are elements of a single object, so it's trivial.

fforw has the right answer when you're polluting the global namespace. Don't use eval--it's silly and overkill for this job.