Removed the redundant #init method from the JavaScript AccountSelector class.

This commit is contained in:
依瑪貓 2023-03-10 12:00:33 +08:00
parent 3fe7eb41ac
commit 5194258b48

View File

@ -53,14 +53,6 @@ class AccountSelector {
constructor(modal) {
this.#entryType = modal.dataset.entryType;
this.#prefix = "accounting-account-selector-" + modal.dataset.entryType;
this.#init();
}
/**
* Initializes the account selector.
*
*/
#init() {
const formAccountControl = document.getElementById("accounting-entry-form-account-control");
const formAccount = document.getElementById("accounting-entry-form-account");
const more = document.getElementById(this.#prefix + "-more");