code: function (resolveOrReject, context, args) {
              var dfd = $.Deferred(),
                  promise = dfd.promise();
              context = context || this.options.context || promise;
              if (resolveOrReject === true) {
                  dfd.resolveWith(context, args);
              } else if (resolveOrReject === false) {
                  dfd.rejectWith(context, args);
              }
              promise.abort = dfd.promise;
              return this._enhancePromise(promise);
          }
docs: Creates and returns a Promise object enhanced with the jqXHR methods abort, success, error and complete: