We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3407e commit 91e0eb7Copy full SHA for 91e0eb7
lib/request.js
@@ -55,6 +55,10 @@ var Request = module.exports = function (xhr, params) {
55
});
56
57
xhr.onreadystatechange = function () {
58
+ // Fix for IE9 bug
59
+ // SCRIPT575: Could not complete the operation due to error c00c023f
60
+ // It happens when a request is aborted, calling the success callback anyway with readyState === 4
61
+ if (xhr.__aborted) return;
62
res.handle(xhr);
63
};
64
@@ -78,6 +82,7 @@ Request.prototype.write = function (s) {
78
82
79
83
80
84
Request.prototype.destroy = function (s) {
85
+ this.xhr.__aborted = true;
81
86
this.xhr.abort();
87
this.emit('close');
88
0 commit comments