Titanium namespaces (preventing acces nested namespaces functions)

150 views Asked by At

I have my project defined almost the same as this one: https://github.com/krawaller/Struct/tree/master/Resources

But the problem I'm having is that I can still access objects from S on any depth. I can for example access S.ui form app.js and so on. Can I prevent this?

I tried using revealing module pattern but because of Ti.include I can see the objects globally...

If I do Ti.include inside function scope, are loaded/included objects bound to this function scope or nor?

Any samples/examples on this problem?

0

There are 0 answers