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

tiny fix

parent 6637c257
No related branches found
No related tags found
No related merge requests found
......@@ -103,8 +103,8 @@ djr.Playlist = function(uuid) {
djr.Playlist.prototype.allSongs = function() {
var songs = [], i, j;
for (i = 0; i < this.chunks.length; i++) {
for (j = 0; j < this.chunk_map[this.chunks[chunk_id]].songs.length; j++) {
songs.push(this.chunk_map[this.chunks[chunk_id]].songs[j]);
for (j = 0; j < this.chunk_map[this.chunks[i]].songs.length; j++) {
songs.push(this.chunk_map[this.chunks[i]].songs[j]);
}
}
return songs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment