Naive example of handling both touchend
and click
, which results in functions being fired twice (once for touch, then for the compatibility mouse events).
Additional dummy link to test certain events only firing once another element receives focus.