Detecting if a plugin has been applied
<p>I have an app that loads conversations. Each time a conversation is loaded I need to destroy and re init the file uploader.</p>

<p>Per: <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/API" rel="nofollow">https://github.com/blueimp/jQuery-File-Upload/wiki/API</a></p>

<p>I'm trying:</p>

<pre><code>// First destroy existing instance
$('.upload').fileUpload('destroy');
    // Init
$('.upload').fileUploadUI({
      ........
</code></pre>

<p>Problem is on first run I get an error: "Uncaught No FileUpload with namespace "file_upload" assigned to this element"</p>

<p>Any ideas on how I can somehow detect if the plugin has been applied and only then destroy? Thansk</p>
