Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: currentLoop.name broken (online/psychoJS) when nested loops are used #469

Open
RebeccaHirst opened this issue Dec 30, 2021 · 0 comments

Comments

@RebeccaHirst
Copy link
Contributor

When nested loops are used the attribute currentLoop.name is correct locally but not online.

Minimal demo here: https://run.pavlovia.org/lpxrh6/loopname_bug_demo/
Repository for demo: https://gitlab.pavlovia.org/lpxrh6/loopname_bug_demo/

Expected behaviour:
When currentLoop.name is called it should return the name of the loop in which the current routine is located. i.e. in the below the correct currentLoop.name for the routine "trial" should be "trials" and in the routine "feedback" the correct loopname is "fb_loop". Locally, this works, but online as soon as one iteration of fb_loop has been completed the currentLoop.name in the "trial" routine becomes "fb_loop".
Capture

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

No branches or pull requests

1 participant