diff --git a/AJAXRequest.js b/AJAXRequest.js index a3d7073..aab5f55 100644 --- a/AJAXRequest.js +++ b/AJAXRequest.js @@ -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: { @@ -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 } });