So we are back at it again with global scope global variables… So I have this extremely useless example to try and show it again.
here are links to the first two related posts
- Titanium Appcelerator Quickie: Global Variables, Scopes & Events
- Titanium Appcelerator Quickie: Global Variables, Scopes & Events pt.2
Please don’t ask my why I did what I did in the code, I created meaningless functions to show that the variables are in the global scope and can be accessed from anywhere within the application.
This is an alternate solution to assigning variables to Ti.App which is officially a no-no