Removed the "#selector" attribute from the JavaScript BaseAccountOption class. It is only used in the constructor. There is no need to hold a reference to it.
This commit is contained in:
parent
202d51a032
commit
ddc1081252
@ -342,12 +342,6 @@ class BaseAccountSelector {
|
|||||||
*/
|
*/
|
||||||
class BaseAccountOption {
|
class BaseAccountOption {
|
||||||
|
|
||||||
/**
|
|
||||||
* The base account selector
|
|
||||||
* @type {BaseAccountSelector}
|
|
||||||
*/
|
|
||||||
#selector;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The element
|
* The element
|
||||||
* @type {HTMLLIElement}
|
* @type {HTMLLIElement}
|
||||||
@ -379,13 +373,12 @@ class BaseAccountOption {
|
|||||||
* @param element {HTMLLIElement} the element
|
* @param element {HTMLLIElement} the element
|
||||||
*/
|
*/
|
||||||
constructor(selector, element) {
|
constructor(selector, element) {
|
||||||
this.#selector = selector;
|
|
||||||
this.#element = element;
|
this.#element = element;
|
||||||
this.code = element.dataset.code;
|
this.code = element.dataset.code;
|
||||||
this.text = element.dataset.text;
|
this.text = element.dataset.text;
|
||||||
this.#queryValues = JSON.parse(element.dataset.queryValues);
|
this.#queryValues = JSON.parse(element.dataset.queryValues);
|
||||||
|
|
||||||
this.#element.onclick = () => this.#selector.form.saveBaseAccount(this);
|
this.#element.onclick = () => selector.form.saveBaseAccount(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user