diff --git a/src/accounting/static/js/account-form.js b/src/accounting/static/js/account-form.js index 448b526..11cd6a9 100644 --- a/src/accounting/static/js/account-form.js +++ b/src/accounting/static/js/account-form.js @@ -342,12 +342,6 @@ class BaseAccountSelector { */ class BaseAccountOption { - /** - * The base account selector - * @type {BaseAccountSelector} - */ - #selector; - /** * The element * @type {HTMLLIElement} @@ -379,13 +373,12 @@ class BaseAccountOption { * @param element {HTMLLIElement} the element */ constructor(selector, element) { - this.#selector = selector; this.#element = element; this.code = element.dataset.code; this.text = element.dataset.text; this.#queryValues = JSON.parse(element.dataset.queryValues); - this.#element.onclick = () => this.#selector.form.saveBaseAccount(this); + this.#element.onclick = () => selector.form.saveBaseAccount(this); } /**