Home Manual Reference Source Test Repository
public class | source

CallbackQueue

this class was deprecated.

Queue of callback functions. It used when you want to allow other modules to subscribe to your events.

Method Summary

Public Methods
public

add(callback: function)

Subscribe on event.

public

notifyAll(params: Array)

Call all callback functions from queue with same parameters.

Public Methods

public add(callback: function) source

Subscribe on event. Add callback function to queue.

Params:

NameTypeAttributeDescription
callback function

Pointer on callback function

public notifyAll(params: Array) source

Call all callback functions from queue with same parameters.

Params:

NameTypeAttributeDescription
params Array

Params which will passed to callback functions