request/notify

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–2015 The Dojo Foundation
Licensed under the AFL 2.1 and BSD 3-Clause licenses.
http://dojotoolkit.org/api/1.10/dojo/request/notify.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部