jsf.js_next_gen 1.0.0-beta-9 → 1.0.0-beta-10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -611,7 +611,7 @@ var Implementation;
|
|
|
611
611
|
*
|
|
612
612
|
*
|
|
613
613
|
* handles the errors, in case of an onError exists within the context the onError is called as local error handler
|
|
614
|
-
* the registered error handlers in the queue
|
|
614
|
+
* the registered error handlers in the queue received an error message to be dealt with
|
|
615
615
|
* and if the projectStage is at development an alert box is displayed
|
|
616
616
|
*
|
|
617
617
|
* note: we have additional functionality here, via the global config myfaces.config.defaultErrorOutput a function can be provided
|
|
@@ -3350,6 +3350,9 @@ var XhrRequest = /** @class */ (function () {
|
|
|
3350
3350
|
xhrObject.open(this.ajaxType, (0, RequestDataResolver_1.resolveFinalUrl)(this.sourceForm, formData, this.ajaxType), true);
|
|
3351
3351
|
//adding timeout
|
|
3352
3352
|
this.timeout ? xhrObject.timeout = this.timeout : null;
|
|
3353
|
+
xhrObject.onerror = function (data) {
|
|
3354
|
+
_this.handleError(new Error("XHR Error: ".concat(JSON.stringify(data))));
|
|
3355
|
+
};
|
|
3353
3356
|
//a bug in the xhr stub library prevents the setRequestHeader to be properly executed on fake xhr objects
|
|
3354
3357
|
//normal browsers should resolve this
|
|
3355
3358
|
//tests can quietly fail on this one
|