react-quickly
react-quickly copied to clipboard
Can't remove event listener
Hi Azat, in Chapter 6 just past Figure 6-6 you write getEventListeners(document).mouseover[0].remove()
but this gives me 'VM6598:1 Uncaught TypeError: getEventListeners(...).mouseover[0].remove is not a function
at
Here's how I got it to work:
document.removeEventListener('mouseover', getEventListeners(document).mouseover[0].listener, false)
I have the same problem. And also I can’t find the target node in event object ( in getEventListener(document) ).