J
Jeremy J Starcher
var TRUE = true,
FALSE = false,
undefined = undefined;
I've also seen something similar in the jQuery source code.
In 9 years of JavaScript development, I've never seen such a thing done.
Am I right to think that this pattern is practically pointless in most
if not all cases, or did I miss the boat on this one?
The original versions of Javascript did not have an 'undefined' constant,
though they did have an undefined value.
For a while, it was common to include the line:
var undefined;
in your script.
Hasn't been needed in ... a long while now.