code: function() {
        if (this.xhr) {
          this.xhr.abort();
        } else if (this.config) {
          this.config.complete.call(this, this.xhr, 'abort');
        }
  
        // Cleanup leftover state.
        if (this.xhr) {
          this.xhr = undefined;
          delete this.xhr;
        }
        if (this.config) {
          this.config = undefined;
          delete this.config;
        }
  
        return this;
      }
docs: Aborts the current connection. This is ineffective for running synchronous calls or completed
  calls. Synchronous calls can be achieved by setting async to false in WebService.
  @return {APICall} The current APICall object