diff --git a/entries/jQuery.Callbacks.xml b/entries/jQuery.Callbacks.xml index 8443476b..c31de063 100644 --- a/entries/jQuery.Callbacks.xml +++ b/entries/jQuery.Callbacks.xml @@ -38,7 +38,7 @@ callbacks.fire( "bar!" );

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.

Two specific methods were being used above: .add() and .fire(). The .add() method supports adding new callbacks to the callback list, while the .fire() method executes the added functions and provides a way to pass arguments to be processed by the callbacks in the same list.

-

Another method supported by $.Callbacks is .remove(), which has the ability to remove a particular callback from the callback list. Here"s a practical example of .remove() being used:

+

Another method supported by $.Callbacks is .remove(), which has the ability to remove a particular callback from the callback list. Here's a practical example of .remove() being used:


 var callbacks = $.Callbacks();
 callbacks.add( fn1 );