title: How do I reference a JavaScript object property with a hyphen in it?
body: <p>I am using <a href="https://stackoverflow.com/questions/754607/can-jquery-get-all-css-styles-associated-with-an-element/5830517#5830517">this script</a> to make a style object of all the inherited, etc. styles.</p>
  <pre><code>var style = css($(this));
  alert (style.width);
  alert (style.text-align);
  </code></pre>
  <p>With the following, the first alert will work fine, but the second one doesn't... it's interpreting the <code>-</code> as a minus I assume. The debugger says 'uncaught reference error'. I can't put quotes around it, though, because it isn't a string. So how do I use this object property?</p>