$.Callbacks
provides a way to manage lists of callbacks and it’s actually quite powerful. If we were to define two functionsfn1
andfn2
we can thenadd
these functions as callbacks to a$.Callbacks
list and invoke them via thefire
method. The result of this is that it becomes simple to construct complex lists of callbacks where input values can be passed through to as many functions as needed with ease.