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?
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.
You must ignore the specific project in the JavaScript validator.
Go: menu Project → Properties → JavaScript → Include Path → Source.
Refer to the following.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With