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

Rework scope #340

Merged
merged 7 commits into from
Nov 8, 2022
Merged

Rework scope #340

merged 7 commits into from
Nov 8, 2022

Conversation

YouKnowBlom
Copy link
Contributor

@YouKnowBlom YouKnowBlom commented Aug 1, 2021

The goal of this PR is to make scope less "global". This will not remove $scope as a concept completely, but it is a step in that direction.

Changes:
Create new interface with all scope variables called PlaybackState, stored in playbackManager.
Rework all functions using scope to either take PlaybackState, or playbackManager as a parameter. Allows for more reliable testing as it does not rely on globals anymore.

@YouKnowBlom YouKnowBlom changed the title Rework scope WIP: Rework scope Aug 1, 2021
@YouKnowBlom YouKnowBlom marked this pull request as ready for review August 4, 2021 22:38
@YouKnowBlom YouKnowBlom changed the title WIP: Rework scope Rework scope Aug 4, 2021
@nielsvanvelzen nielsvanvelzen merged commit 735985f into jellyfin:master Nov 8, 2022
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