bug fix for undefined preamble param

This commit is contained in:
Josh de Leeuw 2014-12-17 12:37:55 -05:00
parent 3516456a52
commit f83aa5a20c

View File

@ -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],