Removed the "#selector" attribute from the JavaScript RecurringAccount class. It is only used in the constructor. There is no need to hold a reference to it.
This commit is contained in:
parent
ddc1081252
commit
f3ae37a409
@ -944,12 +944,6 @@ class RecurringAccountSelector {
|
|||||||
*/
|
*/
|
||||||
class RecurringAccount {
|
class RecurringAccount {
|
||||||
|
|
||||||
/**
|
|
||||||
* The account selector for the recurring item editor
|
|
||||||
* @type {RecurringAccountSelector}
|
|
||||||
*/
|
|
||||||
#selector;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The element
|
* The element
|
||||||
* @type {HTMLLIElement}
|
* @type {HTMLLIElement}
|
||||||
@ -981,13 +975,12 @@ class RecurringAccount {
|
|||||||
* @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.editor.saveAccount(this);
|
this.#element.onclick = () => selector.editor.saveAccount(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user