Created
February 20, 2013 06:03
-
-
Save mattrobenolt/4993301 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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