mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-10 19:20:55 +00:00
Make trial_type
a string in JsPsychData
I forgot to do this when migrating the core to use plugin objects. @jansim was first with this in #661, so he gets the credits! Closes #2076 Co-authored-by: Jan Simson <jan.simson@three-2-one.com>
This commit is contained in:
parent
56d6fd9d0b
commit
017b45d87e
@ -39,7 +39,7 @@ export class JsPsychData {
|
||||
//var trial_opt_data = typeof trial.data == 'function' ? trial.data() : trial.data;
|
||||
|
||||
var default_data = {
|
||||
trial_type: trial.type,
|
||||
trial_type: trial.type.info.name,
|
||||
trial_index: progress.current_trial_global,
|
||||
time_elapsed: this.jsPsych.totalTime(),
|
||||
internal_node_id: this.jsPsych.currentTimelineNodeID(),
|
||||
|
Loading…
Reference in New Issue
Block a user