Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

readline: Remove event listeners on close #3757

Closed
wants to merge 1 commit into from

Conversation

isaacs
Copy link

@isaacs isaacs commented Jul 24, 2012

Fix #3756.

Review, please: @TooTallNate

output.on('resize', onresize);
self.once('close', function() {
input.removeListener('keypress', onkeypress);
output.removeListener('end', onresize);

Choose a reason for hiding this comment

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

Event should be "resize"

@isaacs
Copy link
Author

isaacs commented Jul 24, 2012

Fixed and squashed.

@isaacs
Copy link
Author

isaacs commented Jul 24, 2012

Landed on v0.8 in e4c9c9f

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

Successfully merging this pull request may close these issues.

2 participants