Skip to content

Commit 1786dee

Browse files
committed
Replace a typeof with isFunction
1 parent 873ddf4 commit 1786dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ Raven.prototype = {
605605
// Make a copy of the arguments
606606
var args = [].slice.call(arguments);
607607
var originalCallback = args[0];
608-
if (typeof originalCallback === 'function') {
608+
if (isFunction(originalCallback)) {
609609
args[0] = self.wrap(originalCallback);
610610
}
611611

0 commit comments

Comments
 (0)