senchalabs / jQTouch

Create powerful mobile apps with just HTML, CSS, and Zepto.js (or jQuery).
http://www.jqtouch.com/
MIT License
2.79k stars 592 forks source link

Two tap events fired for actionsheet buttons #488

Open levic opened 11 years ago

levic commented 11 years ago

If you want to do something other than navigate to another page, your custom tap event handler in an actionsheet button will fire twice:

https://gist.github.com/levic/5597041

The custom tap event handler executes first, then the actionsheet tap handler. In the actionsheet's addTapHandler(.. 'follow-actionlink' ...) it then triggers a second tap on the same element -- which causes the custom tap handler to fire again.

(Or is there some other way this should be handled?)