From 333896cf10dbbc3d0f9df4c57d895b4a66d8a15f Mon Sep 17 00:00:00 2001 From: ilessiivi Date: Thu, 16 Sep 2021 16:42:24 +0300 Subject: [PATCH] Unify tabs to spaces --- src/Eventizer.js | 4 ++-- src/FlowChunk.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Eventizer.js b/src/Eventizer.js index e92d5f4..ff86d0d 100644 --- a/src/Eventizer.js +++ b/src/Eventizer.js @@ -215,11 +215,11 @@ export default class extends EventTarget { for (const [i, v] of this._events[event].entries()) { if ((!callback || v.listener == callback) && v.useCapture == options) { // console.log(`[event] Removed one callback from "${event}"`); - this._events[event].splice(i, 1); + this._events[event].splice(i, 1); if (! callback) { this._removeEventListener(event, v.listener, v); } else { - break; + break; } } } diff --git a/src/FlowChunk.js b/src/FlowChunk.js index 576c4fe..9c742ad 100644 --- a/src/FlowChunk.js +++ b/src/FlowChunk.js @@ -466,7 +466,7 @@ export default class FlowChunk { } else { if (this.flowObj.opts.successStatuses.indexOf(this.xhr.status) > -1) { // HTTP 200, perfect - // HTTP 202 Accepted - The request has been accepted for processing, but the processing has not been completed. + // HTTP 202 Accepted - The request has been accepted for processing, but the processing has not been completed. return 'success'; } else if (this.flowObj.opts.permanentErrors.indexOf(this.xhr.status) > -1 || !isTest && this.retries >= this.flowObj.opts.maxChunkRetries) {