Skip to content

Commit ce9c13d

Browse files
committed
add option to prevent wrapping also the functions arguments
1 parent 1c48231 commit ce9c13d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/raven.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ var Raven = {
181181
var args = [], i = arguments.length;
182182
// Recursively wrap all of a function's arguments that are
183183
// functions themselves.
184-
while(i--) args[i] = Raven.wrap(options, arguments[i]);
184+
if (options.deep !== false) {
185+
while(i--) args[i] = Raven.wrap(options, arguments[i]);
186+
}
187+
185188
try {
186189
/*jshint -W040*/
187190
return func.apply(this, args);

0 commit comments

Comments
 (0)