Skip to content

Commit

Permalink
Merge pull request #990 from egaudrain/master
Browse files Browse the repository at this point in the history
Patching for issue #989
  • Loading branch information
jodeleeuw committed Oct 22, 2020
2 parents 719b009 + 934f183 commit 56a74ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jspsych.js
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ window.jsPsych = (function() {
if(jsPsych.plugins[trial.type].info.parameters[param].type == jsPsych.plugins.parameterType.COMPLEX){
if(jsPsych.plugins[trial.type].info.parameters[param].array == true){
// iterate over each entry in the array
for(var i in trial[param]){
trial[param].forEach(function(ip, i){
// check each parameter in the plugin description
for(var p in jsPsych.plugins[trial.type].info.parameters[param].nested){
if(typeof trial[param][i][p] == 'undefined' || trial[param][i][p] === null){
Expand All @@ -945,7 +945,7 @@ window.jsPsych = (function() {
}
}
}
}
});
}
}
// if it's not nested, checking is much easier and do that here:
Expand Down

0 comments on commit 56a74ac

Please sign in to comment.