title: jquery $.when.done() is not firing
body: <p>I'm not sure if I am using the <code>$.when</code> correctly but this is what I am trying to do. I am trying to fire two ajax calls and when they both complete, I need to perform some additional work, however, my <code>.done</code> method never fires. My alert box is never hit, however, both of my Ajax requests are being executed.</p>
  
  <p>The alert "DO NOT HIT HERE" gets triggered. I would like to prevent that from happening. I need it to trigger within the <code>.done</code> only.</p>
  
  <pre><code>function ValidateGeneralTab() {
      var isValid = false;
  
      $.when(SetGeneralTabIsValid(isValid), PostErrorMessages()).done(function ()
      {
          alert("Im here");
          return isValid;
      });
  
      alert("DO NOT HIT HERE");
  }
  
  function SetGeneralTabIsValid(isValid)
  {
      var request = $.ajax({
          type: "POST",
          url: "NewIRA.aspx/SetGeneralTabIsValid",
          data: "{'isValid': '" + isValid + "'}",
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (msg) {
  
          },
          error: function () {
          }
      });
  
      return request;
  }
  
  function PostErrorMessages() {
  
      var errorsCollection = ["Saab", "Volvo", "BMW"];
  
      var request = $.ajax({
          type: "POST",
          url: ErrorMessagesUrl,
          data: JSON.stringify(errorsCollection),
          contentType: "application/json; charset=utf-8",
          dataType: "json",
          success: function (msg) {
  
          },
          error: function () {
          }
      });
  
      return request;
  }
  </code></pre>