I have this:
$('li.clickable').live('click tap', function() {
console.log("hello");
)};
If I listen like this and click on the list item, two events are firing = I’m getting two “hellos”. I need to fire a function with every “click tap”, but only once!
Is there any way to do this. I cannot use “one” because then the function will go silent after the first click, isn’t it?
Thanks for pointer!
EDIT:
if I omit either click or tap, the function still fires twice. Any way to prevent this?
jQM Docs:
Try using:
Also you can test which event is firing