Created
January 23, 2012 15:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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