// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement) {
Util.makeArray(document.body.children).forEach((element) => {
- EventHandler.on(element, 'mouseover', Util.noop)
+ EventHandler.on(element, 'mouseover', Util.noop())
})
}
// empty mouseover listeners we added for iOS support
if ('ontouchstart' in document.documentElement) {
Util.makeArray(document.body.children)
- .forEach((element) => EventHandler.off(element, 'mouseover', Util.noop))
+ .forEach((element) => EventHandler.off(element, 'mouseover', Util.noop()))
}
this._activeTrigger[Trigger.CLICK] = false
return Util.findShadowRoot(element.parentNode)
},
- // eslint-disable-next-line no-empty-function
noop() {
+ // eslint-disable-next-line no-empty-function
+ return function () {}
},
get jQuery() {