getsentry/raven-js — pull request #52 by mattrobenolt (2012-12-18 08:56:16+00:00)
Title: Quick bind

* Automatically bind when passing `true` as the second parameter to `Raven.config`
* Wraps `window.onError` in a closure to preserve any existing `onError` handler.

Is this sane?

I'll write some tests tomorrow hopefully if I get some time.