occ/TraceKit — pull request #38 by pieter (2013-02-26 10:41:52+00:00)
Title: Make it optional to wrap jQuery or async callbacks

We have our own wrapper for asynchronous callbacks and jquery events, where we do stuff beside exception handling.

TraceKit interferes with this by wrapping these threads too, even though we already catch exceptions in these async handlers ourselves.

TraceKits' wrapping should be optional, so it doesn't interfere with wrappers you create yourself.

This patch disables the wrapping of both setTimeout & friends and jQuery entirely. They can be re-enabled by calling TraceKit.wrapJQuery() or TraceKit.wrapAsyncCallbacks().

Refers to #35.