Skip to content

Commit

Permalink
This should fix the require.js plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Mar 8, 2014
1 parent 861e9f3 commit c2a2e26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions plugins/require.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
* Automatically wrap define/require callbacks. (Experimental)
*/
;(function(window, Raven) {
"use strict";
'use strict';

if (typeof define === 'function' && define.amd) {
window.define = Raven.wrap({deep: false}, define);
window.require = Raven.wrap({deep: false}, require);
}

if (typeof define === 'function' && define.amd) {
window.define = Raven.wrap(define);
window.require = Raven.wrap(require);
}
}(this, Raven));
1 change: 1 addition & 0 deletions src/raven.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ var Raven = {
// Signal that this function has been wrapped already
// for both debugging and to prevent it to being wrapped twice
wrapped.__raven__ = true;
wrapped.__inner__ = func;

return wrapped;
},
Expand Down

0 comments on commit c2a2e26

Please sign in to comment.