Include File In All Windows

You must Login before you can answer or comment on any questions.

In simplest form, I need to include the Global.js file in every other class. without having to place it in each class individually. So, the equivalent of doing this in every class in the entire application:

Ti.include('Global.js');

1 Answer

Get rid of includes. Move to commonJS and single context app. U'll have some work to do but the result will worth every single drop of sweat :)

— answered 10 months ago by Dan Tamas
answer permalink
1 Comment
  • I actually can't do that with this project, (I know that's how it should be). I'm just finishing a project already started, and they aren't wanting to do major changes like that. Thanks, though!

    — commented 10 months ago by Jacob Taylor

Your Answer

Think you can help? Login to answer this question!