Callbacks

Callbacks

package js-jquery

Available on js

Constructor

new (flags:String)

A multi-purpose callbacks list object that provides a powerful way to manage callback lists.

Methods

add (callbacks:EitherType<Function, Array<Function>>):Callbacks

Add a callback or a collection of callbacks to a callback list.

disable ():Callbacks

Disable a callback list from doing anything more.

disabled ():Bool

Determine if the callbacks list has been disabled.

empty ():Callbacks

Remove all of the callbacks from a list.

fire (arguments:Dynamic):Callbacks

Call all of the callbacks with the given arguments.

fireWith (?context:Dynamic, ?args:Dynamic):Callbacks

Call all callbacks in a list with the given context and arguments.

fired ():Bool

Determine if the callbacks have already been called at least once.

has (?callback:Function):Bool

Determine whether or not the list has any callbacks attached. If a callback is provided as an argument, determine whether it is in a list.

lock ():Callbacks

Lock a callback list in its current state.

locked ():Bool

Determine if the callbacks list has been locked.

remove (callbacks:EitherType<Function, Array<Function>>):Callbacks

Remove a callback or a collection of callbacks from a callback list.

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/jquery/Callbacks.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部