properly remove keyboard listener

This commit is contained in:
Josh de Leeuw 2017-06-16 09:56:28 -04:00
parent 8c752589fb
commit 46c3ab00f7

View File

@ -122,7 +122,7 @@ jsPsych.plugins["single-audio"] = (function() {
}
// kill keyboard listeners
jsPsych.pluginAPI.cancelKeyboardResponse(keyboardListener);
jsPsych.pluginAPI.cancelAllKeyboardResponses();
// gather the data to store for the trial
var trial_data = {