Project: appceleratorstudio
Issue TISTUD-2647: Window type is used as global namespace for all JS files
We explicitly make use of "Window" as the assumed global namespace for all JS files. This is only correct if the file is intended to be run inside a browser. With the use of TiMobile JS and Node.JS, in that environment, "Global" is the type we should be querying - not Window. We may need to alter indexing/CA to determine the proper Global type to use based on the file's location, or project nature. We can safely assume that any inline JS in an HTML file will use Window. Beyond that we may just want to assume Window for all except Titanium Mobile or Node.ACS projects.
Story points: 8