Skip to content

Conversation

@joelgriffith
Copy link
Contributor

Just so folks are clear that you can un-subscribe from page events

Just so folks are clear that you can un-subscribe from page events
docs/api.md Outdated
function onLoad() {
console.log('Page loaded!');
}
page.on('load', onLoad);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine, but it might be more clear if we use an invent that fires more than once. page.on('console'...?

Also noted the method in the EE examples
docs/api.md Outdated
To unsubscribe from events use the `removeListener` method:

```js
function logRequest() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Include the request param. Sorry to nit pic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No worries, would rather be more thorough

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.

3 participants