looking for a jquery $.resolve() sample that makes sense
<p>I was trying to use a line of code:</p>

<pre><code>$.when(FUNCT1()).done(FUNCT2());
</code></pre>

<p>The issue is that done doesnt quite work, and i was trying to do</p>

<pre><code>$.when(FUNCT1(args, successCallback, failCallback)).then(FUNCT2());
</code></pre>

<p>but there is an issue that FUNCT1 is async so it cant just fire and then fire FUNCT2, but instead needs to do some sort of $.resolve() function.</p>

<p>What i was thinking was do something like this.</p>

<pre><code>$.when(FUNCT1(args, function(success){
    success;
    $.resolve();
}, failFUNCT()).done(FUNCT2());
</code></pre>

<p>does anyone know how this would be done.  I was thinking i might be close to what needs to be done.</p>
