1 2 3 4 5 6 7 8 9 10 var callbacks = $.Callbacks(); callbacks.add( fn1 ); // Outputs: foo! callbacks.fire( "foo!" ); callbacks.add( fn2 ); // Outputs: bar!, fn2 says: bar! callbacks.fire( "bar!" );