It's one of them mysteries wrapped into enigmas. Just saw this topic, and I'm pretty sure the javascript parser hasn't been touched between those versions.
On occasions a stray semicolon would confuse things for the parser, and maybe that's what happened here: I haven't actually tested this theory, since I'm away from my Oolite computer atm, but if, at any point, you had
Code: Select all
if (0 < oolite.compareVersion("1.72"))
{
// code
};
else if (0 < oolite.compareVersion("1.73"))
{
// code
}
else
{
// code
}
the extra
; before
else if should tell the parser that the
if statement is definitely over with, and generate a syntax error when the parser sees the
else immedieately following it, which would now appear to be totally on its own...
In any case, since everything is ok now, could you please edit the subject on your first post, so now it says '- SOLVED' (or 'never mind', etc..) at the end?
Thanks in advance!