Skip to content

Commit

Permalink
specify synchronous callbacks in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed May 3, 2023
1 parent b3d7522 commit e56d103
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -644,9 +644,9 @@ callback function as a parameter as well as `offRequest` and `offResponse`
functions which will remove a callback function from the `onRequest` or
`onResponse` set if it exists.

The `onRequest(callback)` function takes a `callback` function that will pass the xhr `request`
Object to that callback. These callbacks are called in the order registered and act as pre-request
hooks for modifying the xhr `request` Object prior to making a request.
The `onRequest(callback)` function takes a `callback` function that will pass the xhr `request`
Object to that callback. These callbacks are called synchronously, in the order registered
and act as pre-request hooks for modifying the xhr `request` Object prior to making a request.

Example:
```javascript
Expand Down

0 comments on commit e56d103

Please sign in to comment.