title: What does document.domain = document.domain do?
body: <p>The client-side JS component of <a href="http://orbited.org/" rel="noreferrer">Orbited</a> (a Comet server), requires that if the server is running on a different domain or port to the JS itself, you must execute</p>
  
  <pre><code>document.domain = document.domain;
  </code></pre>
  
  <p>before any other JS is loaded.  (See the <a href="http://orbited.org/wiki/Deployment" rel="noreferrer">documentation</a>.)</p>
  
  <p>What does this do?  It looks like a NOOP!  (I've checked and it is in fact necessary.)   </p>