Possible Duplicate:
How can a Javascript object refer to values in itself?
Let's say I have:
var myNamespace = {
_prop1: 'hello',
_prop2: _prop1 + ' you!'
};
I'm just now finding out that this will error on _prop2
at load.
I can't understand why this doesn't work, I've worked around it in my code but I would still like to understand.