clean formatting, remove redundant data

This commit is contained in:
Josh de Leeuw 2014-09-09 08:36:39 -04:00
parent 2c33d7603d
commit 2d9af8dfa9

View File

@ -58,8 +58,7 @@
src: trial.a_path, src: trial.a_path,
id: 'jspsych-single-stim-stimulus' id: 'jspsych-single-stim-stimulus'
})); }));
} } else {
else {
display_element.append($('<div>', { display_element.append($('<div>', {
html: trial.a_path, html: trial.a_path,
id: 'jspsych-single-stim-stimulus' id: 'jspsych-single-stim-stimulus'
@ -84,8 +83,6 @@
// gather the data to store for the trial // gather the data to store for the trial
var trial_data = { var trial_data = {
"trial_type": "single-stim",
"trial_index": block.trial_idx,
"rt": info.rt, "rt": info.rt,
"stimulus": trial.a_path, "stimulus": trial.a_path,
"key_press": info.key "key_press": info.key
@ -101,8 +98,7 @@
setTimeout(function() { setTimeout(function() {
block.next(); block.next();
}, trial.timing_post_trial); }, trial.timing_post_trial);
} } else {
else {
block.next(); block.next();
} }
}; };