From 52b3a5aa0efbb610c0dba46c96b36f2f0417b4a4 Mon Sep 17 00:00:00 2001 From: Kyoung Whan Choe Date: Fri, 1 Oct 2021 11:21:26 -0700 Subject: [PATCH] initialize rt with undefined instead of null null is evaluated as 0, so when there was no response the trial returns a (negative) number as an rt. Changing it to undefined would return a nan to a non-response trial, making it easier to identify. --- jsPsych_version/js/custom-stop-signal-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsPsych_version/js/custom-stop-signal-plugin.js b/jsPsych_version/js/custom-stop-signal-plugin.js index 0948700..a7854db 100755 --- a/jsPsych_version/js/custom-stop-signal-plugin.js +++ b/jsPsych_version/js/custom-stop-signal-plugin.js @@ -99,7 +99,7 @@ jsPsych.plugins["custom-stop-signal-plugin"] = (function() { // store response var response = { - rt: null, + rt: undefined, key: null };