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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jspsych",
3
- "version": "8.0.1",
3
+ "version": "8.0.2",
4
4
  "description": "Behavioral experiments in a browser",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -48,7 +48,7 @@ export class KeyboardListenerAPI {
48
48
  private rootKeydownListener(e: KeyboardEvent) {
49
49
  // Iterate over a static copy of the listeners set because listeners might add other listeners
50
50
  // that we do not want to be included in the loop
51
- for (const listener of Array.from(this.listeners)) {
51
+ for (const listener of [...this.listeners]) {
52
52
  listener(e);
53
53
  }
54
54
  this.heldKeys.add(this.toLowerCaseIfInsensitive(e.key));