A
Alexis Nikichine
I have mistakenly left in my code an uncommented url:
http://site.for.this.function.domain/folder/file.html
function theFunction()
{
// do something.
}
Fortunately, everything went fine:
* The ugly part, with many undeclared identifiers, was commented out
by the //.
* http: was interpreted as something, strange.
Actually, it may have something to do with the syntax with which object
literals can be declared in javascript, but I can't understand why. It
seems that I can prefix most, if not all, lines of code, with any
prefix, followed by a colon, without any noticeable effect.
Any insight on this welcome; anyway, this had to be shared
Alexis
http://site.for.this.function.domain/folder/file.html
function theFunction()
{
// do something.
}
Fortunately, everything went fine:
* The ugly part, with many undeclared identifiers, was commented out
by the //.
* http: was interpreted as something, strange.
Actually, it may have something to do with the syntax with which object
literals can be declared in javascript, but I can't understand why. It
seems that I can prefix most, if not all, lines of code, with any
prefix, followed by a colon, without any noticeable effect.
Any insight on this welcome; anyway, this had to be shared
Alexis