fix xab bug and formatting

Closes #74
This commit is contained in:
Josh de Leeuw 2014-09-29 08:17:19 -04:00
parent 6f10c190c5
commit 940c5580f8

View File

@ -55,7 +55,6 @@
// it with the output of the function // it with the output of the function
trial = jsPsych.pluginAPI.normalizeTrialVariables(trial); trial = jsPsych.pluginAPI.normalizeTrialVariables(trial);
xab_trial_complete = false; xab_trial_complete = false;
// how we display the content depends on whether the content is // how we display the content depends on whether the content is
@ -76,9 +75,7 @@
setTimeout(function() { setTimeout(function() {
showBlankScreen(); showBlankScreen();
}, trial.timing_x); }, trial.timing_x);
break;
// the second part of the trial is the gap between X and AB.
function showBlankScreen() { function showBlankScreen() {
// remove the x stimulus // remove the x stimulus
@ -90,7 +87,6 @@
}, trial.timing_xab_gap); }, trial.timing_xab_gap);
} }
// the third part of the trial is to display A and B, and get the subject's response
function showSecondStimulus() { function showSecondStimulus() {
@ -182,7 +178,6 @@
jsPsych.pluginAPI.getKeyboardResponse(after_response, [trial.left_key, trial.right_key], 'date', false); jsPsych.pluginAPI.getKeyboardResponse(after_response, [trial.left_key, trial.right_key], 'date', false);
} }
}
}; };
return plugin; return plugin;