zwfx - 2010-08-26 19:59:32
...
If you want to go further an even use a sort of namespace emulation in JavaScript, your "class" code could look like this:
if(MyUniqueNamespace === undefined)
var MyUniqueNamespace = { }
if(MyUniqueNamespace.utilities === undefined)
var MyUniqueNamespace.utilities = { }
...
_____________________
it should be
if(MyUniqueNamespace.utilities === undefined)
MyUniqueNamespace.utilities = { }
{without the "var" in front}
kr, zara