axj-ab_ 1.0.12 → 1.0.14
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.
- package/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
@@ -569,10 +569,10 @@ var ab_ = {
|
|
569
569
|
loading && loading();
|
570
570
|
if (callback) {
|
571
571
|
if (xhr.status === 200) {
|
572
|
-
callback(null, xhr.responseText);
|
572
|
+
callback(null, xhr.responseText, xhr);
|
573
573
|
}
|
574
574
|
else {
|
575
|
-
callback(xhr.text || 'fail', null);
|
575
|
+
callback(xhr.text || 'fail', null, xhr);
|
576
576
|
}
|
577
577
|
}
|
578
578
|
}
|
@@ -627,13 +627,13 @@ var ab_ = {
|
|
627
627
|
req.success = function (rep) {
|
628
628
|
loading && loading();
|
629
629
|
if (callback) {
|
630
|
-
callback(undefined, rep.data);
|
630
|
+
callback(undefined, rep.data, rep);
|
631
631
|
}
|
632
632
|
};
|
633
633
|
req.fail = function (err) {
|
634
634
|
loading && loading();
|
635
635
|
if (callback) {
|
636
|
-
callback(err || 'fail', undefined);
|
636
|
+
callback(err || 'fail', undefined, rep);
|
637
637
|
}
|
638
638
|
};
|
639
639
|
init && init(req);
|