title: How to use jQuery .When .done
body: <p>I'm trying to run one function after another function completes.</p>
  
  <pre><code> $.when(saveCanvas(canvas)).done(setWallPaper());
  </code></pre>
  
  <p>Each function works fine on it's own but when I run the code above it only runs the first function.</p>
  
  <p>What do I need to change?</p>