Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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

— asked March 29th 2010 by u no
  • android
  • fireevent
  • mobile
0 Comments

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);
    });
    
    — answered March 29th 2010 by Mark Burggraf
    permalink
    0 Comments
  • that works, thanks! seems to be neccessary to have a string as argument, just (e.source) gives an error.

    — answered March 30th 2010 by u no
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.