Skip to content

Commit

Permalink
fix bug in going from play to stopped state in music module
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeraci committed Jun 6, 2016
1 parent 2e028c9 commit 5a102e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion static/js/AutoHUDController.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,13 @@ window.AutoHUDController = {
song: "songinfo"
}

resultsMap = {}
# start with the results set to null. this way, when it goes from playing
# to paused, it clears the display
resultsMap = {
artist: null
album: null
song: null
}

if isPlaying
links = html.find(".playingSong a")
Expand Down
6 changes: 5 additions & 1 deletion static/js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ window.AutoHUDController = {
album: "album_id",
song: "songinfo"
};
resultsMap = {};
resultsMap = {
artist: null,
album: null,
song: null
};
if (isPlaying) {
links = html.find(".playingSong a");
for (i = 0, len = links.length; i < len; i++) {
Expand Down

0 comments on commit 5a102e2

Please sign in to comment.