Renamed the "#reset" method to "#resetTabPlanes" in the JavaScript DescriptionEditor, to be clear.

This commit is contained in:
依瑪貓 2023-04-03 10:18:47 +08:00
parent 8033921181
commit ab29166f1e

View File

@ -199,7 +199,7 @@ class DescriptionEditor {
*
*/
#onDescriptionChange() {
this.#reset();
this.#resetTabPlanes();
this.description = this.description.trim();
for (const tabPlane of [this.tabPlanes.recurring, this.tabPlanes.bus, this.tabPlanes.travel, this.tabPlanes.general]) {
if (tabPlane.populate()) {
@ -210,10 +210,10 @@ class DescriptionEditor {
}
/**
* Resets the description editor.
* Resets the tab planes.
*
*/
#reset() {
#resetTabPlanes() {
for (const tabPlane of Object.values(this.tabPlanes)) {
tabPlane.reset();
}