I like .bind() more

This commit is contained in:
MotorTruck1221 2025-01-04 00:05:32 -07:00
parent 702bc64bc3
commit 3ca47ce108
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -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);