Skip to content

Conversation

@Smidqe
Copy link
Contributor

@Smidqe Smidqe commented Sep 20, 2022

Many of global variables set in init.js haven't been in use in ages and have no apparent use anywhere. Same goes for main game functions, which have been superseded by the integration with teamup.

Playlist dragging globals too have no use outside of the sorting, and is changed to use the parent to store the information regarding the drag operation being performed.

start: function (event, ui) {
PLAYLIST_DRAGFROM = ui.item.index();
PLAYLIST_DRAGSANITY = ui.item.data('plobject').videoid;
ui.item.parent().data('drag', {
Copy link
Member

Choose a reason for hiding this comment

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

Couldn't this just use a local variable? Is there a benefit to storing the stuff in jQuery data?

@Smidqe Smidqe marked this pull request as draft April 20, 2023 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants