Skip to content
Snippets Groups Projects
Commit bae35e37 authored by ale's avatar ale
Browse files

tiny fix

parent 8c29315f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment