title: jQuery Dialog - Undefined
body: <p>I have  JS function that calls a dialog</p>
  
  <pre><code>function SomeFunction {
  $('#editformdialog').dialog('open');
  }
  </code></pre>
  
  <p>That's obviously simplified. However, I get <code>a is undefined</code> I then add <code>console.log(typeof dialog);</code> and that brings back <code>undefined</code></p>
  
  <p>It works when using jQuery 1.7.1 but not 1.8.12 (needs to be latest). It works in Firefox and not Chrome.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>JJ</p>