A handy tool to catch leaked globals. Some kind of global leakage detection should be built into the js inspectors but untill then I'll use this.
load as first js on the page preferably in the head
load the page with a globals parm like so
globals.js will make a list of all the globals then 100ms later make another list and log any new globals. This will repeat continuously every 100ms.
You can also use it interactively in the console. Just load the page without the globals parameter, then call globals(name, verbose).
The first time it will make a list all subsequent calls will log any new globals.
Optionally add a name that will show up in the logs.
Optionally pass true to the second arguement to see a more verbose log on every call.