JonWash86 / Bonsai-Radio

A playlist management application which leverages the spotify and last.fm apis to bring joy to music nerds
http://www.bonsairadio.com
1 stars 1 forks source link

Remove old event listeners from control-panel buttons when the user switches playlists #32

Closed jrheard closed 5 years ago

jrheard commented 5 years ago

i'm pretty sure this does what you want, but please sanity-check the code and test it out interactively, i'm in a weird library with astonishingly bad wifi so i wasn't super-able to do a lot of interactive testing on this. also moved restoreSort into redrawTrackList since it looks like the former is called every time you call the latter, but feel free to undo that change if you think it's incorrect, i didn't 100% confirm that that was a sane thing to do. let me know if this didn't do what you were hoping for!