callbacks.fireWith( [context ] [, args ] )Returns: Callbacks
Description: Call all callbacks in a list with the given context and arguments.
-
version added: 1.7callbacks.fireWith( [context ] [, args ] )
-
context
A reference to the context in which the callbacks in the list should be fired.
-
args
An array or array-like object of arguments to pass to the callbacks in the list. If omitted or undefined, no arguments will be passed.
-
This method returns the Callbacks object onto which it is attached (this).
Example:
Use callbacks.fireWith() to fire a list of callbacks with a specific context and an array of arguments:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|