Skip to content

Commit

Permalink
Update AJAXRequest.js
Browse files Browse the repository at this point in the history
closes #37
  • Loading branch information
usernane committed Jan 22, 2023
1 parent 59f3e61 commit 9b90401
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions AJAXRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ Object.defineProperties(AJAXRequest, {

Object.defineProperties(AJAXRequest.META, {
VERSION: {
value: '2.1.2',
value: '2.1.3',
writable: false
},
REALSE_DATE: {
value: '2022-09-14',
value: '2023-01-22',
writable: false
},
CONTRIBUTORS: {
Expand Down Expand Up @@ -1671,6 +1671,18 @@ function AJAXRequest(config = {
},
writable:false,
enumerable: true
},
hasActiveRequest:{
value:function () {
for (var x = 0 ; x < this.xhr_pool.length ; x++) {
if (this.xhr_pool[x].active) {
return true;
}
}
return false;
},
writable:false,
enumerable: true
}
});

Expand Down

0 comments on commit 9b90401

Please sign in to comment.