Closed trailsandtribulations closed 11 years ago
Check the documentation on http://craig.is/riding/gators. You can call it directly:
Gator(document).on('click', 'a', function(e) {
e.preventDefault();
_doSomething(this);
});
or you can return false:
Gator(document).on('click', 'a', function(e) {
_doSomething(this);
return false;
});
since the method only has one arg, how do you
e.stopPropagation()
ore.preventDefault()
?the classic example is an
click
trigger on ananchor
where you do not want thehref
to be followed