trouble with jquery deferreds
<p>jQuery's deferred's have never liked me, and I've never been fully able to understand them. I want to be notified when a number of deferreds are ALL done. The real issue is that the number of deferreds won't be the same each time. So I can't do this:</p>

<pre><code>$.when(d1, d2, d3).done()
</code></pre>

<p>I tried <code>$.when.apply(this, [d1, d2, d3])</code> but it immediately fires when just one is completed. </p>

<p>Also, I absolutely need a way to pass an array of deferreds. This array is dynamic and will have a different number of deferreds each time my function executes.</p>

<p>I know there is probably an obvious solution, but I am oblivious to it. </p>
