From 0186cefa3255905033403ec5432c7ead0b987c77 Mon Sep 17 00:00:00 2001 From: An Phan Date: Mon, 4 Apr 2016 13:13:26 +0800 Subject: [PATCH] Fix #292 --- resources/assets/js/stores/queue.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/assets/js/stores/queue.js b/resources/assets/js/stores/queue.js index be28edf4..f01675ed 100644 --- a/resources/assets/js/stores/queue.js +++ b/resources/assets/js/stores/queue.js @@ -4,7 +4,6 @@ import { includes, union, difference, - indexOf, map, shuffle } from 'lodash'; @@ -162,7 +161,7 @@ export default { * @return {?Integer} */ indexOf(song) { - return indexOf(this.state.songs, song); + return this.state.songs.indexOf(song); }, /**