W3cubDocs

/Dojo

dojo/request/notify

Summary

Register a listener to be notified when an event in dojo/request happens.

Usage

notify(type,listener);
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.

Returns: any | undefined

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.

Methods

emit(type,event,cancel)

Defined by dojo/request/notify

Parameter Type Description
type undefined
event undefined
cancel undefined

© 2005–2017 JS Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/request/notify.html