title: Passing data between deferred functions
body: <p>I'm using some deferred functions with the .done so, I'm having something like that:</p>
  
  <pre><code>askTime(number).done(formatTime).done(function(html){
     times += html;
  });
  </code></pre>
  
  <p>But although <code>formatTime</code> returns <code>data</code>, the <code>html</code> var has the data returned by <code>askTime</code>.</p>
  
  <p>I don't know where if the problem. <code>formatTime</code> receives a data variable which is returned by <code>askTime</code> but if I put:</p>
  
  <pre><code>askTime(number).done(formatTime(data)).done(function(html)
  </code></pre>
  
  <p>It says that <code>data</code> isn't defined.</p>