Skip to content

Commit b9a49df

Browse files
committed
Updated #26 Commented out jQuery ajax errors for now
1 parent 440f0f8 commit b9a49df

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "exceptionless",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "JavaScript client for Exceptionless",
5-
"license": "Apache",
5+
"license": "Apache-2.0",
66
"main": "dist/exceptionless.js",
77
"keywords": [
88
"exceptionless",

src/exceptionless.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ function processUnhandledException(stackTrace:TraceKit.StackTrace, options?:any)
6969
builder.submit();
7070
}
7171

72-
function processJQueryAjaxError(event, xhr, settings, error:Error): void {
72+
/*
73+
TODO: We currently are unable to parse string exceptions.
74+
function processJQueryAjaxError(event, xhr, settings, error:string): void {
7375
var client = ExceptionlessClient.default;
7476
if (xhr.status === 404) {
7577
client.submitNotFound(settings.url);
@@ -82,6 +84,7 @@ function processJQueryAjaxError(event, xhr, settings, error:Error): void {
8284
.submit();
8385
}
8486
}
87+
*/
8588

8689
var defaults = Configuration.defaults;
8790
var settings = getDefaultsSettingsFromScriptTag();
@@ -98,9 +101,9 @@ defaults.submissionAdapter = new DefaultSubmissionAdapter();
98101
TraceKit.report.subscribe(processUnhandledException);
99102
TraceKit.extendToAsynchronousCallbacks();
100103

101-
if (typeof $ !== 'undefined' && $(document)) {
102-
$(document).ajaxError(processJQueryAjaxError);
103-
}
104+
//if (typeof $ !== 'undefined' && $(document)) {
105+
// $(document).ajaxError(processJQueryAjaxError);
106+
//}
104107

105108
(<any>Error).stackTraceLimit = Infinity;
106109

0 commit comments

Comments
 (0)