title: javascript object variable key
body: <p>I am creating a plugin for Jquery and need to have a variable as a key in an object.</p>
  
  <pre><code>$(selector).animate({self.settings.direction: '+='+self.displacement+'px'}, "slow" , function () {});
  </code></pre>
  
  <p>this part causes the error: </p>
  
  <blockquote>
    <p>self.settings.direction</p>
  </blockquote>
  
  <p>any ideas where my syntax is wrong?
  thank you</p>