Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Fire event does not fire

$
0
0

Hi guys,

I did it in app.js

var myArrayDate = [];

Ti.App.addEventListener('app:updateDate', function(e)
{
    label.text = myArrayDate[0] + '/' + myArrayDate[1] + '/' + myArrayDate[2];
});

and child.js

btn1.addEventListener('click', function() 
{
    Ti.App.fireEvent('app:updateDate',
    {
        myArrayDate: pickerData         
    });
    win.close();  
});

Clicking in btn1 Ti.App.fireEvent doesn't fires...

A help will be good..

Thanks !


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>