app/assets/javascripts/songlist.js
Function initializeSlickGrid
has 248 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Songlist.prototype.initializeSlickGrid = function (events) {
var initDone = false;
var columns = [
{ id: 'np', resizable: false, width: 22 },
File songlist.js
has 297 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
//= require jquery.cookie
//= require lib/utils
//= require lib/key_codes
//= require lib/mediator
//= require dragtooltip
Function nextSong
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
grid.nextSong = function (shuffle, repeat, manual) {
var number_of_rows = grid.getDataLength();
var new_row = 0;
var current_row = -1;
Consider simplifying this complex logical expression. Open
Open
if ((item.title && item.title.toLowerCase().indexOf(str) != -1) ||
(item.artist && item.artist.toLowerCase().indexOf(str) != -1) ||
(item.album && item.album.toLowerCase().indexOf(str) != -1))
{
match = true;