bug fix single-stim

This commit is contained in:
Josh de Leeuw 2013-11-09 15:24:41 -05:00
parent ca123a3ff1
commit 2e5a79a872

View File

@ -42,7 +42,7 @@
trials[i].timing_response = params.timing_response || -1; // if -1, then wait for response forever trials[i].timing_response = params.timing_response || -1; // if -1, then wait for response forever
trials[i].timing_post_trial = params.timing_post_trial || 1000; trials[i].timing_post_trial = params.timing_post_trial || 1000;
// optional parameters // optional parameters
trials[i].is_html = (typeof params.is_html === 'undefined') ? false : true; trials[i].is_html = (typeof params.is_html === 'undefined') ? false : params.is_html;
trials[i].prompt = (typeof params.prompt === 'undefined') ? "" : params.prompt; trials[i].prompt = (typeof params.prompt === 'undefined') ? "" : params.prompt;
trials[i].data = (typeof params.data === 'undefined') ? {} : params.data[i]; trials[i].data = (typeof params.data === 'undefined') ? {} : params.data[i];
} }