Whenever I submit a plugin to Firefox I get an email telling me some of my variables are leaking into the global scope… once they tell me I fix the issue. But till then is there any way (program?) to check if the variables are leaking into the global scope?
Thanks!
Both JSLint and JSHint will give you warnings when you miss a
var. Both are available on Github (JSLint, JSHint) and both can be run from the command line using Node.js, Rhino or any other non-browser environment of your choice. They can even be integrated into your text editor / IDE of choice and run with a keystroke.