SyntaxFix
Write A Post
Hire A Developer
Questions
I solved this issue by setting the global variables as a static properties on the classes to which they are most relevant. In ES5 it looks like this:
var Foo = function(){...}; Foo.globalVar = {};