From 063c76915833eff56efdeece37705a521ba96029 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Fri, 3 Mar 2023 23:44:43 +0800 Subject: [PATCH] Renamed the variables in the summary editor. --- src/accounting/static/js/summary-editor.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/accounting/static/js/summary-editor.js b/src/accounting/static/js/summary-editor.js index 07af029..b55f1cc 100644 --- a/src/accounting/static/js/summary-editor.js +++ b/src/accounting/static/js/summary-editor.js @@ -181,8 +181,8 @@ class SummaryEditor { */ #onSummaryChange() { this.summary.value = this.summary.value.trim(); - for (const tab of [this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) { - if (tab.populate()) { + for (const tabPlane of [this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) { + if (tabPlane.populate()) { break; } } @@ -283,8 +283,8 @@ class SummaryEditor { */ #reset() { this.summary.value = ""; - for (const tab of Object.values(this.tabPlanes)) { - tab.reset(); + for (const tabPlane of Object.values(this.tabPlanes)) { + tabPlane.reset(); } this.tabPlanes.general.switchToMe(); }