Skip to content

Instantly share code, notes, and snippets.

@Amimul100
Created July 8, 2014 05:53
Show Gist options
  • Save Amimul100/7ec58b9d1807749e3a8d to your computer and use it in GitHub Desktop.
Save Amimul100/7ec58b9d1807749e3a8d to your computer and use it in GitHub Desktop.
I have tried your app and was able to salve the problem, you were having. I used require() method instead of Ti.include().
Read the docs on Ti.include() carefully. you will find that,
-It's not supported with Alloy projects.
-It's been deprecated since Titanium SDK 3.3.0
-Ti.include() is discouraged, CommonJS require() is the better solution.
-Calling include from an event handler does not work consistently across platforms.
-Calling include on a non-existent file causes a runtime error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment