fix error in player

This commit is contained in:
bkfox 2017-05-04 17:11:49 +02:00
parent 89182f3c20
commit 5fabe16429

View File

@ -131,7 +131,7 @@ Playlist.prototype = {
container = container || this.playlist; container = container || this.playlist;
if(position != undefined) { if(position != undefined) {
container.insertBefore(sound.item, container.children[position]); container.insertBefore(sound.item, container.children[position]);
this.sounds.insert(position, 0, sound.item); this.sounds.splice(position, 0, sound);
} }
else { else {
container.appendChild(sound.item); container.appendChild(sound.item);