N
NikitOS
Guest
The element parameter has the following JSDoc:
JavaScript:
But the target for an event can be not only
The parameter type must be
Continue reading...
JavaScript:
@param {Element} element - The Element on which to attach the event.
But the target for an event can be not only
Element
, so for other objects we can see a warning:The parameter type must be
EventTarget
.Continue reading...