This commit is contained in:
Josh de Leeuw 2016-08-10 12:58:39 -04:00
parent 835b1664cd
commit fa5d8b74fe

View File

@ -113,7 +113,7 @@ jsPsych.plugins.categorize = (function() {
plugin.trial = function(display_element, trial) {
// default parameters
trial.choices = triaul.choices || jsPsych.ALL_KEYS;
trial.choices = trial.choices || jsPsych.ALL_KEYS;
trial.text_answer = (typeof trial.text_answer === 'undefined') ? "" : trial.text_answer;
trial.correct_text = (typeof trial.correct_text === 'undefined') ? "<p class='feedback'>Correct</p>" : trial.correct_text;
trial.incorrect_text = (typeof trial.incorrect_text === 'undefined') ? "<p class='feedback'>Incorrect</p>" : trial.incorrect_text;