From bae35e3719f27773b273b5836d05c83576acd02f Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 24 Jul 2011 16:55:14 +0100 Subject: [PATCH] tiny fix --- server/djrandom/frontend/static/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/djrandom/frontend/static/player.js b/server/djrandom/frontend/static/player.js index ca96323..bb4e4bc 100644 --- a/server/djrandom/frontend/static/player.js +++ b/server/djrandom/frontend/static/player.js @@ -113,10 +113,10 @@ djr.Playlist.prototype.allSongs = function() { djr.Playlist.prototype.createUniqueChunk = function(songs, title) { var unique = [], i; for (i = 0; i < songs.length; i++) { - if (this.song_map[song[i]] != null) { + if (this.song_map[songs[i]] != null) { continue; } - unique.push(song[i]); + unique.push(songs[i]); } if (unique.length > 0) { return new djr.PlaylistChunk(unique, title); -- GitLab