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

how to remover a listener #482

Open
sutinghui24 opened this issue Mar 15, 2017 · 2 comments
Open

how to remover a listener #482

sutinghui24 opened this issue Mar 15, 2017 · 2 comments
Labels

Comments

@sutinghui24
Copy link

when I use
cursor.on('update',fun)
how to remover the listener.
No cursor.release() because has other listener

@sutinghui24
Copy link
Author

I have read the document again and not find.Who can tell me

@Yomguithereal
Copy link
Owner

Hello @sutinghui24. Baobab uses the Emmett library to emit events. Here is the documentation related to removing listeners.

Quick example:

cursor.off('event', listener);

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

No branches or pull requests

2 participants