jsPsych/packages/plugin-html-keyboard-response
bjoluc 8cfbba526a Use classes to avoid global state
Instead of a global `jsPsych` object, there is a `JsPsych` class now
which can be instantiated with the parameters that were previously
accepted by `jsPsych.init`. Upon instantiation, the `JsPsych` class also
instantiates classes for stateful modules (`jsPsych.data` and
`jsPsych.pluginAPI`) and passes relevant `JsPsych` instance information
to them. Plugins are expected to be classes now that are instantiated
for each trial and receive the `JsPsych` instance as their only
constructor argument.
2021-07-12 18:15:37 +02:00
..
src Use classes to avoid global state 2021-07-12 18:15:37 +02:00
jest.config.cjs Migrate to TypeScript 2021-07-06 17:55:42 +02:00
package.json Migrate to TypeScript 2021-07-06 17:55:42 +02:00
rollup.config.mjs Setup monorepo and switch to ES6 modules 2021-06-23 22:39:38 +02:00
tsconfig.json Migrate to TypeScript 2021-07-06 17:55:42 +02:00