title: Type Error: c is not a constructor/c.widget is not a function
body: <p>I am trying to get <strong>jQuery UI dialogs</strong> working on my <strong>drupal</strong> site. After checking the web console, I found that I was getting the error:</p>
  
  <blockquote>
    <p>$(...).dialog is not a function</p>
  </blockquote>
  
  <p>I did some researching (aka. googling) and I found that this could have been because I didn't add all the necessary <code>js</code> files to my drupal page. So I added <code>jquery.ui.dialog.min.js</code> and all of its dependencies. However, I am now getting the: </p>
  
  <blockquote>
    <p>Type Errors: c is not a constructor and c.widget is not a function.</p>
  </blockquote>
  
  <p>Since <code>jquery.ui.widget.min.js</code> doesn't depend on anything, I am not sure what to do...</p>
  
  <p>also I haven't found any conclusive answers to these errors...  </p>
  
  <p><strong>EDIT:</strong> js files added (in order):</p>
  
  <pre><code>jquery.ui.widget.min.js
  jquery.ui.dialog.min.js
  jquery.ui.button.min.js
  jquery.ui.draggable.min.js
  jquery.ui.mouse.min.js
  jquery.ui.position.min.js
  jquery.ui.resizable.min.js
  my_module.js
  </code></pre>