Skip to content

Instantly share code, notes, and snippets.

@mattrobenolt
Created February 20, 2013 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattrobenolt/4993301 to your computer and use it in GitHub Desktop.
Save mattrobenolt/4993301 to your computer and use it in GitHub Desktop.
// jQuery
Raven.plugin({
// the main, base object
object: $,
// the keys within that object to wrap
keys: ['success', 'failure'],
// optionally wrap the arguments to the callbacks, if they are themselves functions
args: true
})
// require.js
Raven.plugin({
object: window, keys: ['define', 'require'], args: true
})
Raven.plugin($, ['success', 'failure'], false);
Raven.plugin(window, ['define', 'require'], true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment