Interface JQueryCallback

Interface for the JQuery callback

Index

Methods

Methods

public add(callbacks: Function): JQueryCallback

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

Parameters

  • callbacks: Function

    A function, or array of functions, that are to be added to the callback list.

Returns

JQueryCallback

public add(callbacks: Array<Function>): JQueryCallback

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

Parameters

  • callbacks: Array<Function>

    A function, or array of functions, that are to be added to the callback list.

Returns

JQueryCallback

public disable(): JQueryCallback

Disable a callback list from doing anything more.

Returns

JQueryCallback

public disabled(): boolean

Determine if the callbacks list has been disabled.

Returns

boolean

public empty(): JQueryCallback

Remove all of the callbacks from a list.

Returns

JQueryCallback

public fire(arguments?: Array<any>): JQueryCallback

Call all of the callbacks with the given arguments

Parameters

  • arguments?: Array<any> optional

    The argument or list of arguments to pass back to the callback list.

Returns

JQueryCallback

public fireWith(context?: any, args?: Array<any>): JQueryCallback

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

Parameters

  • context?: any optional

    A reference to the context in which the callbacks in the list should be fired.

  • args?: Array<any> optional

Returns

JQueryCallback

public fired(): boolean

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

Returns

boolean

public has(callback: Function): boolean

Determine whether a supplied callback is in a list

Parameters

  • callback: Function

    The callback to search for.

Returns

boolean

public lock(): JQueryCallback

Lock a callback list in its current state.

Returns

JQueryCallback

public locked(): boolean

Determine if the callbacks list has been locked.

Returns

boolean

public remove(callbacks: Function): JQueryCallback

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

Parameters

  • callbacks: Function

    A function, or array of functions, that are to be removed from the callback list.

Returns

JQueryCallback

public remove(callbacks: Array<Function>): JQueryCallback

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

Parameters

  • callbacks: Array<Function>

    A function, or array of functions, that are to be removed from the callback list.

Returns

JQueryCallback