Skip to content

Commit

Permalink
register next button event listener with named instead of anonymous fn
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Oct 15, 2024
1 parent 4abc7ce commit 1acfb6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/record/src/consentVideo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export class VideoConsentPlugin implements JsPsychPlugin<Info> {
*/
private nextButton(display: HTMLElement) {
const next = this.getButton(display, "next");
next.addEventListener("click", () => this.endTrial());
next.addEventListener("click", this.endTrial);
}

/**
Expand Down

0 comments on commit 1acfb6f

Please sign in to comment.