Register a listener to be notified when an event in dojo/request happens.
| Parameter | Type | Description |
|---|---|---|
| type | String |
Optional The event to listen for. Events emitted: "start", "send", "load", "error", "done", "stop". |
| listener | Function |
Optional A callback to be run when an event happens. |
A signal object that can be used to cancel the listener. If remove() is called on this signal object, it will stop the listener from being executed.
See the dojo/request/notify reference documentation for more information.
| Parameter | Type | Description |
|---|---|---|
| type | undefined | |
| event | undefined | |
| cancel | undefined |