How to get the reference of parent/wrapping object?
<p>I have the following object.</p>

<pre><code>ou.map : {
   settings : {
   },

   basePath : './path/';
   marker_setting : {
     img   :  this.basePath + 'image.png';
   },

   fun : function() {
      alert ( this.maker_setting.img  );
      //alert ( this.basePath + this.maker_setting.img ); Right now, I am using this where this.maker_setting.img is simply 'image.png'
   }

}
</code></pre>

<p>Here, value of <code>ou.map.marker_setting.img</code> comes out to be <code>undefinedimage.png</code> , but I want that to be <code>./path/image.png</code> . How can I do that?  </p>

<p><strong>Edit</strong><br>
I am open to change the complete approach as well. All I want is, one namespace having marker_setting and basePath and one main method which can use property in marker_setting.  </p>

<p>Also, I tried all these</p>

<pre><code>img   :  this.basePath + 'image.png';
img   :  basePath + 'image.png';
img   :  ou.map.basePath + 'image.png';
</code></pre>

<p>None, of these gave desired output. Let me know if any other info is required.</p>
