jQuery.ajax returns a {{ jqXHR-Promise}}, returning it from the client methods will allow users to do the following:
var request = client.request('...').get(); request.then(function(){ //Success }, function(){ //Failure });
jQuery.ajax returns a {{ jqXHR-Promise}}, returning it from the client methods will allow users to do the following:
var request = client.request('...').get(); request.then(function(){ //Success }, function(){ //Failure });