This commit is contained in:
An Phan 2016-04-04 13:13:26 +08:00
parent 8c862cb9cc
commit 0186cefa32

View file

@ -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);
},
/**