From cb6704f6bd8a7b0a983415119855d872bbd0ef5e Mon Sep 17 00:00:00 2001 From: Annika Backstrom Date: Fri, 24 Jul 2015 11:50:57 -0400 Subject: [PATCH] Fix typo: Here"s -> Here's --- entries/jQuery.Callbacks.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );