react-quickly icon indicating copy to clipboard operation
react-quickly copied to clipboard

Can't remove event listener

Open sinewave440hz opened this issue 7 years ago • 2 comments

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 :1:42' in the console...do you know what should be used instead and why this no longer works - as I mentioned in the previous issue, I did not need the binding and I wonder if this is related...

sinewave440hz avatar Jun 29 '17 13:06 sinewave440hz

Here's how I got it to work:

document.removeEventListener('mouseover', getEventListeners(document).mouseover[0].listener, false)

sflahave avatar Dec 16 '17 19:12 sflahave

I have the same problem. And also I can’t find the target node in event object ( in getEventListener(document) ).

akaigyouhou avatar Oct 12 '21 05:10 akaigyouhou