From 3ca47ce108443771ad26fc2908a030c86450f094 Mon Sep 17 00:00:00 2001 From: MotorTruck1221 Date: Sat, 4 Jan 2025 00:05:32 -0700 Subject: [PATCH] I like .bind() more --- src/utils/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/events.ts b/src/utils/events.ts index 6c61648..80ced2f 100644 --- a/src/utils/events.ts +++ b/src/utils/events.ts @@ -35,7 +35,7 @@ class EventHandler { try { document.addEventListener(eventType, () => fn()) } catch (_) {}; } /** - * Attatches the events you passed when creating the class. If none are passed, an error is thrown. + * Binds the events you passed when creating the class to the document. If none are passed, an error is thrown. */ bind(): void | Error { const events = Object.entries(this.#eventItems.events);