slimit
slimit copied to clipboard
SlimIt fails to parse jQuery fullcalendar
SlimIt returns the following error when minifying jQuery fullcalendar 1.5.4:
SyntaxError: Unexpected token (SEMI, ';') at 1:93792 between LexToken(LINE_TERMINATOR,'\n',1,93780) and LexToken(REGEX,"/ opt('slotMinutes')\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\teventElement.draggable('option', 'grid', [colWidth, 1]);\n\t\t\t\t\t\t\t\t\tallDay = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\trevert = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\trevert = revert || (allDay && !dayDelta);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tresetElement();\n\t\t\t\t\t\t/",1,93792)
Here is the problematic line in the raw source: https://github.com/arshaw/fullcalendar/blob/master/src/agenda/AgendaEventRenderer.js#L400
Moving the / opt('slotMinutes')
line to the end of the previous line allows slimit to parse the file correctly.
Thanks for the bug report.