#addEventListener event type check

5 messages · Page 1 of 1 (latest)

waxen junco
#

Is there a way to check if the event type passed in the addEventListener method is a valid event? E.g. "click" valid, "ahsue" invalid.

vagrant mauve
#

I'm assuming you're talking about a runtime check?

waxen junco
#

Yes

#

Then there's probably not