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

NikitOS

Well-known member
Affected version
2.3.0 Beta 1
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.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.0 Beta 3).

Change log:
Fix XF event handler JSDoc
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom