Skip to content
Discussion options

You must be logged in to vote

I'm going to tag @bjoluc in on this since I expect he will know the best approach.

I think my approach, FWIW, would be to export a function from each of the timeline-xxx.js files that generates the correct timeline and takes in an instance of jsPsych as an argument. Then you can create the jsPsych object in scope for the main.js file without attaching to window. But I wouldn't be surprised if there is a better way to do it that I'm not thinking of.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by jodeleeuw
Comment options

You must be logged in to vote
1 reply
@kalaschnik
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kalaschnik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants