I have this code:
$link.click(function (e) {
debugger;
});
When the link is clicked and the debugger engages, e is a regular browser event, and not a jQuery event. There's no .stopPropagation() or .preventDefault().
Why is this?
e should be an instance of jQuery.Event, so those methods should be available:
$("a").click(function(e) {
alert(e instanceof jQuery.Event); // true
});
Can you provide more context, such as the debugger output?