Tap event auto re-navigateTo on back button click
Hi.
I have a ui-list of items, where I have a live tap event on each li a.
Working perfectly clicking to view the item, it navigate to correct viewItemScreen.
But when I click "back button" or any other navigation button (example HOME button) in the viewItemScreen, it goes to the correct "itemList/start-screen, but then automatically re-navigate to the itemViewScreen again (me not doing anything, it just re-fire the event for some reason).
Not sure how to stop this from happening. Any suggestion? die() or something after "tap"!?!
ui-list itemsScreen:
code$(".ui-listview").find('a.event-item-link').live("tap",function(){
if($(this).attr("rel")){
localStorage.setItem('eventId', $(this).attr("rel"));
Appery.navigateTo('itemViewScreen',{ transition: 'slide'});
} else {
return false;
}
return false;
});/code
viewItemScreen
codeRegular back button in header/code