Skip to content

Commit

Permalink
bring back anonymous fn (need arrow fn for correct scope)
Browse files Browse the repository at this point in the history
  • Loading branch information
becky-gilbert committed Oct 15, 2024
1 parent 97ca963 commit b628337
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 b628337

Please sign in to comment.