jspsych 8.0.1 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import seedrandom from 'seedrandom/lib/alea';
4
4
 
5
5
  var _package = {
6
6
  name: "jspsych",
7
- version: "8.0.1",
7
+ version: "8.0.2",
8
8
  description: "Behavioral experiments in a browser",
9
9
  type: "module",
10
10
  main: "dist/index.cjs",
@@ -614,7 +614,7 @@ class KeyboardListenerAPI {
614
614
  }
615
615
  }
616
616
  rootKeydownListener(e) {
617
- for (const listener of Array.from(this.listeners)) {
617
+ for (const listener of [...this.listeners]) {
618
618
  listener(e);
619
619
  }
620
620
  this.heldKeys.add(this.toLowerCaseIfInsensitive(e.key));