Skip to content

Add abortTimelineByName() to allow ending specific timelines#3168

Merged
jodeleeuw merged 3 commits into
v8from
abort-timeline-by-id
Nov 9, 2023
Merged

Add abortTimelineByName() to allow ending specific timelines#3168
jodeleeuw merged 3 commits into
v8from
abort-timeline-by-id

Conversation

@jodeleeuw
Copy link
Copy Markdown
Member

@jodeleeuw jodeleeuw commented Oct 30, 2023

This is to implement #616

Allows for jsPsych.abortTimelineByName('name'). name is added as an optional property of timelines.

Todo:

  • Add documentation updates

@jodeleeuw jodeleeuw added this to the 8.0 milestone Oct 30, 2023
@jodeleeuw jodeleeuw requested a review from bjoluc October 30, 2023 17:04
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Oct 30, 2023

🦋 Changeset detected

Latest commit: a4c573e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
jspsych Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@jodeleeuw jodeleeuw linked an issue Oct 30, 2023 that may be closed by this pull request
@bjoluc
Copy link
Copy Markdown
Member

bjoluc commented Nov 2, 2023

Great to see you working on new v8 features ☺️ I'm on a vacation until the middle of next week and coming back to this/jsPsych afterwards. I like the idea of naming timelines (I think we were thinking about using object references for this once?), looks very elegant to me!

Copy link
Copy Markdown
Member

@bjoluc bjoluc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! I hope you're not having too much trouble finding your way around the new core. Maybe rename getTimelineByName => getActiveTimelineByName?

@jodeleeuw jodeleeuw merged commit 72ddfa0 into v8 Nov 9, 2023
@jadeddelta jadeddelta deleted the abort-timeline-by-id branch December 25, 2024 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow programmatic end of a specific timeline, identified by ID

2 participants