scripts/matrix-reasoning/jspsych-6.0.2/plugins/jspsych-ravens-matrix.js
// function to end trial when it is time
function to end trial when it is time
function to end trial when it is time
function end_trial() {
      jsPsych.pluginAPI.clearAllTimeouts();
      var trial_data = {
        "rt": response.rt,
        "stimulus": trial.stimulus,
        "button_pressed": response.button
      };
      display_element.innerHTML = '';
      jsPsych.finishTrial(trial_data);
    }
function end_trial ( ) { jsPsych . pluginAPI . clearAllTimeouts ( ) ; var trial_data = { "rt" : response . rt , "stimulus" : trial . stimulus , "button_pressed" : response . button } ; display_element . innerHTML = '' ; jsPsych . finishTrial ( trial_data ) ; }
function to end trial when it is time
function to end trial when it is time
// kill any remaining setTimeout handlers // gather the data to store for the trial // clear the display // move on to the next trial