Skip to content

Instantly share code, notes, and snippets.

@juliankrispel
Created January 23, 2012 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliankrispel/1663907 to your computer and use it in GitHub Desktop.
Save juliankrispel/1663907 to your computer and use it in GitHub Desktop.
Append an event to global app object / This is great for linking events across modules
button.addEventListener("click", function() {
Ti.App.fireEvent("app:updateData", {
field1: 'your',
field2: 'new',
field3: 'data'
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment