jspsych/plugins/jspsych-rdk.js
//Function to record the first response by the subject

Function to record the first response by the subject
Function to record the first response by the subject
function after_response(info) {
			if (response.key == -1) {
				response = info; 
			}
			if (trial.response_ends_trial) {
				window.clearTimeout(timeoutID);
				end_trial();
			}
		} 
function after_response ( info ) { if ( response . key == - 1 ) { response = info ; } if ( trial . response_ends_trial ) { window . clearTimeout ( timeoutID ) ; end_trial ( ) ; } }
Function to record the first response by the subject
Function to record the first response by the subject
//If the response has not been recorded, record it
 //Replace the response object created above
 //If the parameter is set such that the response ends the trial, then kill the timeout and end the trial
 //End of after_response
