Skip to content

Conversation

rom1504
Copy link
Member

@rom1504 rom1504 commented Oct 14, 2016

No description provided.

```

```javascript
client.unwatchCorpus('555daefff80f910100d741d6', listener);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to pass listener to unwatchCorpus?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you meant callback -- it does not have to be the same function as the one used for watchCorpus, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the same function passed to watchCorpus. https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener works that way, the function passed to addEvenListener needs to be passed to removeEventListener.
I guess the python API remove all the listeners ?

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

Successfully merging this pull request may close these issues.

2 participants