Quantcast
Viewing all articles
Browse latest Browse all 17

Ti.API not available in eventHandler callback ?!?

Hello,

here is the code:

win.addEventListener('android:back', function(e) {
    Ti.API.Info("Please don't close!!!");
});
Attached to a window object of course. When I hit the back button, the event get triggered but I get that error:

TypeError: Cannot find function Info in object [Ti.API]


Viewing all articles
Browse latest Browse all 17

Trending Articles



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