mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-12 08:38:11 +00:00
allow for text and data to be non-arrays for single trial block
issue #24
This commit is contained in:
parent
c0beee3221
commit
1f0df1f80e
@ -13,6 +13,9 @@
|
||||
var plugin = {};
|
||||
|
||||
plugin.create = function(params) {
|
||||
|
||||
params = jsPsych.enforceArray(params, ['text','data']);
|
||||
|
||||
var trials = new Array(params.text.length);
|
||||
for (var i = 0; i < trials.length; i++) {
|
||||
trials[i] = {};
|
||||
|
Loading…
Reference in New Issue
Block a user