From 1acfb6fa6f286629f6ee7a1f59772dff290ea530 Mon Sep 17 00:00:00 2001 From: Becky Gilbert Date: Tue, 15 Oct 2024 13:28:30 -0700 Subject: [PATCH] register next button event listener with named instead of anonymous fn --- packages/record/src/consentVideo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/record/src/consentVideo.ts b/packages/record/src/consentVideo.ts index 3d1e2c9b..06c3a245 100644 --- a/packages/record/src/consentVideo.ts +++ b/packages/record/src/consentVideo.ts @@ -280,7 +280,7 @@ export class VideoConsentPlugin implements JsPsychPlugin { */ private nextButton(display: HTMLElement) { const next = this.getButton(display, "next"); - next.addEventListener("click", () => this.endTrial()); + next.addEventListener("click", this.endTrial); } /**