1
0
mirror of https://github.com/psychopy/psychojs.git synced 2025-05-12 08:38:10 +00:00

Merge pull request #393 from apitiot/master

fromSnapshot now handles thisTrial as well
This commit is contained in:
Alain Pitiot 2021-06-11 15:30:07 +02:00 committed by GitHub
commit 04bd836e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,6 +302,8 @@ export class TrialHandler extends PsychObject
snapshot.handler.thisIndex = snapshot.thisIndex;
snapshot.handler.ran = snapshot.ran;
snapshot.handler._finished = snapshot._finished;
snapshot.handler.thisTrial = snapshot.handler.getCurrentTrial();
}