Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't remove event listener #10

Open
sinewave440hz opened this issue Jun 29, 2017 · 2 comments
Open

Can't remove event listener #10

sinewave440hz opened this issue Jun 29, 2017 · 2 comments

Comments

@sinewave440hz
Copy link

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...

@sflahave
Copy link

Here's how I got it to work:

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

@akaigyouhou
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants