QuoJS
QuoJS copied to clipboard
preventDefault on tap events
hi, trying to understand:
$$('a.add_fav').on('touchstart', function(e) {
e.preventDefault();
mycodehere();
});
seems to correctly prevent link to be executed, while
$$('a.add_fav').tap(function(e) {
e.preventDefault();
mycodehere();
});
does take the browser to the a href attribute. tested on safari IOS 6.x, iphone 4. is it right? more in general, which method should be used with quojs to prevent "a" links to be executed? thanks in advance, you did really a great job with quojs.
e.stopImmediatePropagation();