Possible Duplicate:
Self-references in object literal declarations
Given this object:
var OBJ = (function(){
var dom = {
prop1 : 'something',
prop2 : 'something',
prop3 : prop1
}
return dom.prop3;
})();
How would i go to achieve the prop3 reference (ideally without creating a method) ? i tried:
this.prop1, dom.prop1, this.dom.prop1