From 1f4241437eecf210f51abec23e26f877e20866d7 Mon Sep 17 00:00:00 2001 From: WBHarry Date: Mon, 20 Apr 2026 22:18:41 +0200 Subject: [PATCH] using function.call instead of function.bind --- module/applications/sheets-configs/action-config.mjs | 4 ++-- module/applications/sheets-configs/action-settings-config.mjs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/applications/sheets-configs/action-config.mjs b/module/applications/sheets-configs/action-config.mjs index 1de8f140..d5adb79c 100644 --- a/module/applications/sheets-configs/action-config.mjs +++ b/module/applications/sheets-configs/action-config.mjs @@ -63,10 +63,10 @@ export default class DHActionConfig extends DHActionBaseConfig { effectId = this.action.area[areaIndex].effects[index]; const data = this.action.toObject(); data.area[areaIndex].effects.splice(index, 1); - this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) }); + this.constructor.updateForm.call(this, null, null, { object: foundry.utils.flattenObject(data) }); } else { effectId = this.action.effects[index]._id; - this.constructor.removeElement.bind(this)(event, button); + this.constructor.removeElement.call(this, event, button); } this.action.item.deleteEmbeddedDocuments('ActiveEffect', [effectId]); diff --git a/module/applications/sheets-configs/action-settings-config.mjs b/module/applications/sheets-configs/action-settings-config.mjs index e525269f..5ec9fb5f 100644 --- a/module/applications/sheets-configs/action-settings-config.mjs +++ b/module/applications/sheets-configs/action-settings-config.mjs @@ -56,10 +56,10 @@ export default class DHActionSettingsConfig extends DHActionBaseConfig { effectId = this.action.area[areaIndex].effects[index]; const data = this.action.toObject(); data.area[areaIndex].effects.splice(index, 1); - this.constructor.updateForm.bind(this)(null, null, { object: foundry.utils.flattenObject(data) }); + this.constructor.updateForm.call(this, null, null, { object: foundry.utils.flattenObject(data) }); } else { effectId = this.action.effects[index]._id; - this.constructor.removeElement.bind(this)(event, button); + this.constructor.removeElement.call(this, event, button); }