I dynamically load a JavaScript file using jQuery's $.getScript()
method. The FireFox console always tells me that there is a "syntax error" in the first line. However, the script proceeds to work just fine. The first line is nothing but
function SomeFunc (param) {
as it is the start of a class. Adding a dummy class to the beginning of the file, like this:
function Dummy () {
return false;
}
... it shows the syntax error for the first line (function Dummy () {
). Does anyone know what's causing this?
Thanks in advance!