mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
change repetitions -> sequence_reps
prevents conflict with new default repetitions option
This commit is contained in:
parent
9d816dbf2b
commit
b5fc742461
@ -20,7 +20,7 @@
|
|||||||
trials[i].stims = params.stimuli[i];
|
trials[i].stims = params.stimuli[i];
|
||||||
trials[i].frame_time = params.frame_time || 250;
|
trials[i].frame_time = params.frame_time || 250;
|
||||||
trials[i].frame_isi = params.frame_isi || 0;
|
trials[i].frame_isi = params.frame_isi || 0;
|
||||||
trials[i].repetitions = params.repetitions || 1;
|
trials[i].sequence_reps = params.sequence_reps || 1;
|
||||||
trials[i].choices = params.choices || [];
|
trials[i].choices = params.choices || [];
|
||||||
trials[i].prompt = (typeof params.prompt === 'undefined') ? "" : params.prompt;
|
trials[i].prompt = (typeof params.prompt === 'undefined') ? "" : params.prompt;
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@
|
|||||||
if (animate_frame == trial.stims.length) {
|
if (animate_frame == trial.stims.length) {
|
||||||
animate_frame = 0;
|
animate_frame = 0;
|
||||||
reps++;
|
reps++;
|
||||||
if (reps >= trial.repetitions) {
|
if (reps >= trial.sequence_reps) {
|
||||||
endTrial();
|
endTrial();
|
||||||
clearInterval(animate_interval);
|
clearInterval(animate_interval);
|
||||||
showImage = false;
|
showImage = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user