Bug Invalid JSDoc for XF.on, XF.onDelegated and XF.off

There is a bug in this version
N

NikitOS

Guest
The element parameter has the following JSDoc:
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:
1711196760156.webp

The parameter type must be EventTarget.

Continue reading...