I understand that when you create a listener in jQuery Mobile like:
$('.this-class').on('swipe',tapHandler);
tapHandler will run twice. In order to eliminate this problem I have seen multiple solutions, such as:
$('.page-card').off('swipe').on('swipe',tapHandler);
or
wrapping it in side of pageinit
in order to eliminate chaching issues if you are creating dynamic content within pagebeforeshow
as seen here.
I also understand that even bubbling comes in to play here.
However, I was hoping that someone could explain why this known exists, and why the contributes to jQuery decided to take this route, knowing the drawbacks.