Skip to content

json.onError #3

Open
Open

Description

@schloerke

In dvl.ajax.requester['normal' || 'cache'], can you replace the onError callback to call with

normal:
  //...
  complete(xhr.responseText ? textStatus, null)    // complete(textStatus, null)
cache:
  //...
  cb(xhr.responseText ? textStatus, null);               // cb(textStatus, null)

It allows for response body capture, even though it's an error.

Best,
Barret

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions