slimit icon indicating copy to clipboard operation
slimit copied to clipboard

SlimIt fails to parse jQuery fullcalendar

Open treyhunner opened this issue 12 years ago • 2 comments

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)

treyhunner avatar Dec 27 '12 00:12 treyhunner

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.

treyhunner avatar Dec 27 '12 00:12 treyhunner

Thanks for the bug report.

rspivak avatar Jan 02 '13 12:01 rspivak