Renamed the "#reset" method to "#resetTabPlanes" in the JavaScript DescriptionEditor, to be clear.
This commit is contained in:
parent
8033921181
commit
ab29166f1e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user