jsPsych
jsPsych copied to clipboard
If data parameter is a function, merging data from timeline into trial doesn't work as expected
See #1213 for example.
This turns out to be really difficult to do in the current implementation of timelines. The trouble is that the merging of data parameters happens before the experiment runs, but we need to hold onto the function parameter until the trial executes. So we'd have to store both the object of data values and the function. This might be more reasonable to do with an eventual rewrite of the timeline code to support more just-in-time modifications to the timeline.
I'm going to pull this from 7.0, but leave it open as something we'd like to eventually get to via a different route.