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

tiny fix

parent 5f6cded0
No related branches found
No related tags found
No related merge requests found
......@@ -112,12 +112,11 @@ djr.Playlist.prototype.allSongs = function() {
// Creates a new chunk with only unique songs.
djr.Playlist.prototype.createUniqueChunk = function(songs, title) {
var songs = [], i;
for (i = 0; i < playlist_chunk.songs.length; i++) {
var song = playlist_chunk.songs[i];
if (this.song_map[song] != null) {
for (i = 0; i < songs.length; i++) {
if (this.song_map[song[i]] != null) {
continue;
}
songs.push(song);
songs.push(song[i]);
}
if (songs.length > 0) {
return new djr.PlaylistChunk(songs, title);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment