From 2ca441d8a1ed6b2efe2d87778330ad73b93db088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Castro=20Mart=C3=ADn?= Date: Sun, 8 Sep 2024 17:14:02 +0200 Subject: [PATCH] Modernize --- framework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework.js b/framework.js index a4524ad..be9a59d 100644 --- a/framework.js +++ b/framework.js @@ -12,7 +12,7 @@ export function htmlToElement(html) { export class AuxEvent { constructor() { - this.event = document.createElement('e'); + this.event = new EventTarget(); this.aux = new Event('e'); }