Hi guys!
Have a tap event that is init on a pageshow. Strange thing is that it seems to be called twice...why?
html:
<div id="naver" data-role="navbar" data-iconpos="top"><ul><li><a id="weekb" href="#" data-theme="a" data-icon="arrow-l">Vecka 0</a></li>
<li><a id="weekf" href="#" data-theme="a" data-icon="arrow-r">Vecka 0</a></li></ul></div>
script:
$( '#objectspage' ).live( 'pagebeforeshow',function(event)
{
$(document).on('tap','#weekf',function(){alert('taparoo')});
}
The "Taparoo" alert shows 2 everytime i click on my navbar button. I also tried: $("#weekf").tap(function(){alert("taparoo");});
Same result. However if i change the tap to click. Then it runs once. Why?