From 334f8c8f3882ea8ef1af58e26cffb6c5c2424d81 Mon Sep 17 00:00:00 2001 From: raphael Date: Thu, 17 Jun 2021 08:35:04 +0200 Subject: [PATCH] rename vars --- scripts/services/ReadOnlyBackendService.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/services/ReadOnlyBackendService.js b/scripts/services/ReadOnlyBackendService.js index a014f07..a65c399 100644 --- a/scripts/services/ReadOnlyBackendService.js +++ b/scripts/services/ReadOnlyBackendService.js @@ -6,7 +6,7 @@ class ReadOnlyBackendService { * @type {Map} * @private */ - #idToReadOnlyId = new Map(); + _idToReadOnlyId = new Map(); /** * Mapping from a read-only whiteboard id to the matching editable whiteboard id @@ -14,7 +14,7 @@ class ReadOnlyBackendService { * @type {Map} * @private */ - #readOnlyIdToId = new Map(); + _readOnlyIdToId = new Map(); /** * Make sure a whiteboardId is ignited in the service @@ -24,8 +24,8 @@ class ReadOnlyBackendService { * @param {string} whiteboardId */ init(whiteboardId) { - const idToReadOnlyId = this.#idToReadOnlyId; - const readOnlyIdToId = this.#readOnlyIdToId; + const idToReadOnlyId = this._idToReadOnlyId; + const readOnlyIdToId = this._readOnlyIdToId; if (!idToReadOnlyId.has(whiteboardId) && !readOnlyIdToId.has(whiteboardId)) { const readOnlyId = uuidv4(); @@ -45,7 +45,7 @@ class ReadOnlyBackendService { if (this.isReadOnly(whiteboardId)) return whiteboardId; // run in isReadOnly // this.init(whiteboardId); - return this.#idToReadOnlyId.get(whiteboardId); + return this._idToReadOnlyId.get(whiteboardId); } /** @@ -55,7 +55,7 @@ class ReadOnlyBackendService { * @return {string} */ getIdFromReadOnlyId(readOnlyId) { - return this.#readOnlyIdToId.get(readOnlyId); + return this._readOnlyIdToId.get(readOnlyId); } /** @@ -66,7 +66,7 @@ class ReadOnlyBackendService { */ isReadOnly(whiteboardId) { this.init(whiteboardId); - return this.#readOnlyIdToId.has(whiteboardId); + return this._readOnlyIdToId.has(whiteboardId); } }