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

Reimplement most .off() variants #18

Merged
merged 1 commit into from
Nov 22, 2018
Merged

Reimplement most .off() variants #18

merged 1 commit into from
Nov 22, 2018

Conversation

jodal
Copy link
Member

@jodal jodal commented Nov 21, 2018

To ease migration from Mopidy 0.5, this reimplements the various ways of calling .off() that can easily be implemented using .removeAllListeners() and .removeListener().

@tkem Re #17, does this ease the migration from v0.5 for you?

@jodal jodal self-assigned this Nov 21, 2018
@jodal jodal requested a review from tkem November 21, 2018 22:15
To ease migration from Mopidy 0.5, this reimplements the various ways of
calling `.off()` that can easily be implemented using
`.removeAllListeners()` and `.removeListener`().
Copy link
Member

@tkem tkem left a comment

Choose a reason for hiding this comment

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

Looks good. I only use mopidy.off() when switching servers in the MoMo app, so I only tested the off method without parameters. I think removing any references to Node.js from the changelog will also avoid some confusion ("do I need Node.js to use mopidy.js?").

@jodal jodal merged commit ce284d4 into master Nov 22, 2018
@jodal jodal deleted the jodal/better-off branch April 4, 2019 10:49
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