mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 16:48:12 +00:00
bug fix for undefined preamble param
This commit is contained in:
parent
3516456a52
commit
f83aa5a20c
@ -20,7 +20,7 @@
|
||||
var trials = [];
|
||||
for (var i = 0; i < params.questions.length; i++) {
|
||||
trials.push({
|
||||
preamble: params.preamble[i] || "",
|
||||
preamble: (typeof params.preamble === 'undefined') ? "" : params.preamble[i],
|
||||
questions: params.questions[i],
|
||||
labels: params.labels[i],
|
||||
intervals: params.intervals[i],
|
||||
|
Loading…
Reference in New Issue
Block a user