mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
Naming
This commit is contained in:
parent
cb0f63208e
commit
023dda6806
1 changed files with 2 additions and 2 deletions
|
|
@ -1003,10 +1003,10 @@ export default class CharacterSheet extends DHBaseActorSheet {
|
||||||
});
|
});
|
||||||
|
|
||||||
for (const element of html.querySelectorAll('.resource-value'))
|
for (const element of html.querySelectorAll('.resource-value'))
|
||||||
element.addEventListener('click', this.updateResource.bind(this));
|
element.addEventListener('click', this.onUpdateResource.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
async updateResource(event) {
|
async onUpdateResource(event) {
|
||||||
const target = event.target.closest('.resource-value');
|
const target = event.target.closest('.resource-value');
|
||||||
const { resource, value: textValue } = target.dataset;
|
const { resource, value: textValue } = target.dataset;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue