Quantcast
Viewing latest article 12
Browse Latest Browse All 15

Global object

My intern developed an Titanium Android App and created an global object within the Ti.App namespace like this: Ti.App.ObjectName.function

This seemed to work in Android but on iOS it doesn't work when called from a different Window, the variables/functions within the object exist but they are all null, but when I add the variables/functions to the Ti.App namespace directly it works like a charm.

The object is defined as followed:

var Module = {}; Module.function = function() {

}

Ti.App.Module = Module;

Any idea why this isn't working for iOS?

The solutions is to not use Ti.App directly, then it works with no problem but I'm still wondering why the variables exist but are all null;


Viewing latest article 12
Browse Latest Browse All 15

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>