Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery UI min script errors

I get errors from Eclipse v3.7 (Indigo) when using jquery-ui-1.8.19.custom.min.js. It seems that the script is working properly, and I do not get any errors from the browsers.

I created a custom jQuery UI theme and downloaded it from jQuery site, but I get three main errors when I put the script into a Maven project in Eclipse.

Cannot return from outside a function or method
Syntax error on token "Invalid Regular Expression Options", no accurate correction available
Syntax error, insert ")" to complete Arguments

And dozens of missing semicolon warnings...

How can I fix this?

like image 597
jilt3d Avatar asked May 02 '12 08:05

jilt3d


2 Answers

There is this bug report. Comment 15 has a suggested workaround for getting the validator to ignore certain files, and it might be worth trying.

like image 131
Simon Avatar answered Sep 28 '22 08:09

Simon


You must ignore the specific project in the JavaScript validator.

Go: menu ProjectPropertiesJavaScriptInclude PathSource.

Refer to the following.

like image 37
Nalakap Avatar answered Sep 28 '22 09:09

Nalakap