Skip to content

Commit d1b8c5b

Browse files
authored
Remove jQuery.ready auto-wrap (#849)
1 parent 28a6732 commit d1b8c5b

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/raven.js

-9
Original file line numberDiff line numberDiff line change
@@ -932,15 +932,6 @@ Raven.prototype = {
932932
for (var i = 0; i < eventTargets.length; i++) {
933933
wrapEventTarget(eventTargets[i]);
934934
}
935-
936-
var $ = _window.jQuery || _window.$;
937-
if ($ && $.fn && $.fn.ready) {
938-
fill($.fn, 'ready', function (orig) {
939-
return function (fn) {
940-
return orig.call(this, self.wrap(fn));
941-
};
942-
}, wrappedBuiltIns);
943-
}
944935
},
945936

946937

test/integration/test.js

-19
Original file line numberDiff line numberDiff line change
@@ -320,25 +320,6 @@ describe('integration', function () {
320320
}
321321
);
322322
});
323-
324-
it('should capture exceptions from $.fn.ready (jQuery)', function (done) {
325-
var iframe = this.iframe;
326-
327-
iframeExecute(iframe, done,
328-
function () {
329-
setTimeout(done);
330-
331-
$(function () {
332-
foo();
333-
});
334-
},
335-
function () {
336-
var ravenData = iframe.contentWindow.ravenData[0];
337-
// # of frames alter significantly between chrome/firefox & safari
338-
assert.isAbove(ravenData.exception.values[0].stacktrace.frames.length, 2);
339-
}
340-
);
341-
});
342323
});
343324

344325
describe('breadcrumbs', function () {

0 commit comments

Comments
 (0)