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 f3bdc05 commit 3ae93eaCopy full SHA for 3ae93ea
src/Network/HTTP/Affjax.js
@@ -74,15 +74,13 @@ exports._ajax = function () {
74
xhr.withCredentials = options.withCredentials;
75
xhr.send(options.content);
76
77
- return function (/* error */) {
78
- return function (cancelErrback, cancelCallback) {
79
- try {
80
- xhr.abort();
81
- } catch (e) {
82
- return cancelErrback(e);
83
- }
84
- return cancelCallback();
85
- };
+ return function (error, cancelErrback, cancelCallback) {
+ try {
+ xhr.abort();
+ } catch (e) {
+ return cancelErrback(e);
+ }
+ return cancelCallback();
86
};
87
88
0 commit comments