I'm trying to do this:
sendDetails(formData).done(checkErrors).done(nextForm);
Where sendDetails returns a JQuery.ajax(...) object
and checkErrors for now is
function checkErrors(data) {
$.Deferred().reject();
}
I was under the assumption that this would prevent the call to nextForm, but it doesn't - what am I missing?
Using jQuery 1.11