title: Reference nested 'sibling'-property in object literal
body: <p>I want to reference a nested property in an object literal from within another property in that same object literal. </p>
  
  <p>Consider the following contrived example: </p>
  
  <pre><code>var obj = {
     product1: {
        price: 80,
        price_was: 100,
        discount: function(){
  
          return 100 - (100 * (price/price_was));
  
          //I don't want to use:  
          //100 - (100 * (this.product1.price/this.product1.price_was))
          //because the name of the parent ('product1' in this case) isn't known 
          //a-priori.
  
        }
     }
  } 
  </code></pre>
  
  <p>The above is obviously incorrect, but how to get to 'price' and 'price_was' from within 'discount'? </p>
  
  <p>I've looked at the following question, which is close, but in that question the needed property is a direct child of 'this', which in the above example isn't the case.
  <a href="https://stackoverflow.com/questions/4858931/reference-variable-in-object-literal">reference variable in object literal?</a></p>
  
  <p>Any way to do this? </p>