title: javascript: Define reference in nested object to parent object
body: <p>I have following object:</p>
  
  <pre><code>var myObject = {
      attributes: { name: "dev.pus", age: 29 },
      someInjectedObject: {
          name: "someComponent",
          action: function() {
              // do something
              return this.this.attributes.name; // this surely won't work :(
          }
      }
  };
  </code></pre>
  
  <p>As you see I want to get myObject.attributes.name from an nested part of the object without having to observe the value.</p>
  
  <p>How do I do this? How do I define a reference?</p>
  
  <p><strong>EDIT:</strong>
  A simple myObject.attributes isn't enough because myObject changes or better gets assigned to a new variable.</p>