Y
Hacker News
new
|
ask
|
show
|
jobs
by
plorkyeran
4668 days ago
You can make them properties on a global object, so that using an invalid event name is at least a runtime error (when you try to bind to an undefined event) rather than being mystified about why the event never triggers.
1 comments
alttab
4668 days ago
You still need a runtime test to find the error though, which I why manual QA is required.
link