From 88ea76197369c945b236157dde5461bd2a8e3a46 Mon Sep 17 00:00:00 2001 From: Josh de Leeuw Date: Wed, 18 May 2016 17:29:03 -0400 Subject: [PATCH] quick bug fixes --- jspsych.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jspsych.js b/jspsych.js index b1b0abca..0b29334f 100755 --- a/jspsych.js +++ b/jspsych.js @@ -134,13 +134,13 @@ var jsPsych = (function() { // wait for iti if (typeof current_trial.timing_post_trial == 'undefined') { if (opts.default_iti > 0) { - setTimeout(next_trial, opts.default_iti); + setTimeout(nextTrial, opts.default_iti); } else { nextTrial(); } } else { if (current_trial.timing_post_trial > 0) { - setTimeout(next_trial, current_trial.timing_post_trial); + setTimeout(nextTrial, current_trial.timing_post_trial); } else { nextTrial(); } @@ -175,7 +175,7 @@ var jsPsych = (function() { core.addNodeToEndOfTimeline = function(new_timeline, preload_callback){ timeline.insert(new_timeline); if(opts.auto_preload){ - jsPsych.pluginAPI.autoPreload(new_timeline, preload_callback); + jsPsych.pluginAPI.autoPreload(timeline, preload_callback); } else { preload_callback(); }