title: Dialog is not opening after some time
body: <p>I am using jQuery UI dialog, as soon as page is reloaded it works fine, but if I have awaited for some time, or doesn't do any action, then I clicked again on button to open that dialog, then it is giving error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: undefined is not a function 
    deleteNode
    (anonymous function) </p>
  </blockquote>
  
  <p>My code sample is as following:</p>
  
  <pre><code>function deleteNode(d) {
      $("#deleteNodeDialog").dialog({
          /*My delete node functionality here*/
      });
  }
  </code></pre>