views:

26

answers:

3

http://pastebin.com/WfsVZ4nU

i got the following error when i compressed my javascript code.

+2  A: 

When code is minified it is important not to miss any semicolon. Please check your code here and put semicolon, where is needed (Lines 194 and 199).

pepkin88
A: 

Missing semi-colons on (at least) lines 194 and 199.

Dan Beam
A: 

Try to use JSLint, it is a series of checks that parse your Javascript and look for potential problems.

At the beginning, it is painful to use as many errors appear.
But then, it becomes a very useful safety net, to write solid JS that compress well.

And usually it can be easily integrated in your IDE so you forget it.
eg: It can check the JS each times you save the file.

Mic