Trying to understand js call()
<p>I am trying to understand this line of code. it's from the blueimp jquery file upload. I've extracted the part I need down this line (it populates my page with images I already have). I am unclear as to why it needs to be called this way. I understand the call() method, just not clear on this - it seems extra convoluted:</p>

<pre><code>$('#fileupload').fileupload('option', 'done').call($('#fileupload'), null, {result: data.images});
</code></pre>

<p>data.images is a JSON set of images. The code works, just unclear why I need to call things as they are.</p>

<p>Here's the original code - made for multiple fields it looks like)</p>

<p><a href="https://github.com/blueimp/jQuery-File-Upload/blob/master/js/main.js#L53" rel="nofollow">https://github.com/blueimp/jQuery-File-Upload/blob/master/js/main.js#L53</a></p>
