mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
fixing naming issue in survey-text
This commit is contained in:
parent
17deebeee4
commit
35880b0bba
@ -21,7 +21,7 @@
|
|||||||
var trials = [];
|
var trials = [];
|
||||||
for (var i = 0; i < params.questions.length; i++) {
|
for (var i = 0; i < params.questions.length; i++) {
|
||||||
trials.push({
|
trials.push({
|
||||||
type: "survey_text",
|
type: "survey-text",
|
||||||
questions: params.questions[i],
|
questions: params.questions[i],
|
||||||
data: (typeof params.data === 'undefined') ? {} : params.data[i]
|
data: (typeof params.data === 'undefined') ? {} : params.data[i]
|
||||||
});
|
});
|
||||||
@ -69,7 +69,7 @@
|
|||||||
|
|
||||||
// save data
|
// save data
|
||||||
block.writeData($.extend({}, {
|
block.writeData($.extend({}, {
|
||||||
"trial_type": "survey_text",
|
"trial_type": "survey-text",
|
||||||
"trial_index": block.trial_idx,
|
"trial_index": block.trial_idx,
|
||||||
"rt": response_time
|
"rt": response_time
|
||||||
}, question_data, trial.data));
|
}, question_data, trial.data));
|
||||||
|
Loading…
Reference in New Issue
Block a user