title: JQuery-File-Upload error: Uncaught TypeError: Object #<Object> has no method '_on'
body: <p>I'm trying to use the <a href="http://blueimp.github.com/jQuery-File-Upload/">jQuery-File-Upload plugin</a>. But I have a problem when actually trying to invoke the function. Somewhere in my code, I'll call $(fubar).fileupload, and get <code>Uncaught TypeError: Object #&lt;Object&gt; has no method '_on' jquery.fileupload.js:977</code>. Now this is happening after the page and all js scripts have been loaded. </p>
  
  <p><strong>A)</strong> A <a href="https://github.com/blueimp/jQuery-File-Upload/issues/1085">similar error is discussed</a> in the tool's boards. I tried the technique of including jquery.fileupload.js just after the dom loads. I tried the technique, with something like below. </p>
  
  <p><code>
        </p>
  
  <pre><code>  &lt;script src='/static/presentation/js/lib/jquery.fileupload.js'&gt;&lt;/script&gt;
    &lt;script src='/static/presentation/js/lib/jquery.iframe-transport.js'&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></code></p>
  
  <p>But when loading the page, I get another error <code>Uncaught Error: Mismatched anonymous define() module: function ($) {...</code> . </p>
  
  <p><strong>B)</strong> On documentReady, I even tried dynamically generating and including the script tags, in head. But I get the same error <code>Uncaught Error: Mismatched anonymous define() module: function ($) {...</code> . </p>
  
  <p>I'm using jquery-file-upload with requirejs. I only bring that up I tested out the library and got it working with a plain jane static site. Just the basic js library files. So I don't know what's causing this. But it doesn't seem to be DOM related. </p>
  
  <p>Any help is appreciated.</p>