From 9b904012f0289e1f4447c740ddda5cf31ccf8663 Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Sun, 22 Jan 2023 16:55:27 +0300 Subject: [PATCH] Update AJAXRequest.js closes #37 --- AJAXRequest.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 } });