Ti.App.fireEvent source property
hello,
i'd like to check the source property within a listener for a Ti.App.fireEvent, to check from where the event is fired.
if it exists, how can i access it?
thanks, uno
2 Answers
-
Accepted Answer
I think this would work:
Ti.App.addEventListener('myEvent',function(e) { Ti.API.info("myEvent fired with the following payload: " + e.source); });
-
that works, thanks! seems to be neccessary to have a string as argument, just (e.source) gives an error.