Skip to content

Commit 873ddf4

Browse files
committed
Fix XHR, $.fn.ready wrappers not returning orig fn value
1 parent aefe94d commit 873ddf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/raven.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ Raven.prototype = {
667667
}, true /* noUndo */); // don't track filled methods on XHR instances
668668
}
669669
});
670-
origSend.apply(this, arguments);
670+
return origSend.apply(this, arguments);
671671
};
672672
});
673673
}
@@ -676,7 +676,7 @@ Raven.prototype = {
676676
if ($ && $.fn && $.fn.ready) {
677677
fill($.fn, 'ready', function (orig) {
678678
return function (fn) {
679-
orig.call(this, self.wrap(fn));
679+
return orig.call(this, self.wrap(fn));
680680
};
681681
});
682682
}

0 commit comments

Comments
 (0)