My application is mostly all ajax, using jquery (of course!). Over the past few days, I've been trying to create a method to catch or trap most errors in a universal way. The idea being that when our native application-level error handling fails, the application is left in an unreliable and unknown state, so I'd like to both record as much information as possible, and reset the application (i.e. refresh the page).
The issue I am having is if I cause an error on the page, it is successfully caught, but if the handler was an anchor, the page continues navigating, and I've tried several ways to stop the event propagation, without success.
Is your code exactly like the code you linked to at the Cozi blog? That implementation of wrappedFn does not appear to return the value of the original function. Generally you would return false to indicate you don't want the default action and bubbling to occur, so in your catch you'd just return false.