Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

SlimIt fails to parse jQuery fullcalendar #41

Open
treyhunner opened this Issue · 2 comments

2 participants

@treyhunner

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

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.

@rspivak
Owner

Thanks for the bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.