> What would be the most elegant way to do this? I had the idea to store
> the functions in a list and call them one after the other in a loop.
>
> The other idea I had is this:
>
> var myCallback;
> function initialize(callback) {
> if (myCallback) {
> myCallback = function() {
>
Dave Methvin schrieb:
>> I'm wondering what is the best way to concatenate
>> (callback) functions.
>
> Create a custom event and trigger that. That way, you don't even need to
> pass in a callback; just trigger("yourevent", [eventargs]) on the element
> and jQuery does all the work calling the ha
> I'm wondering what is the best way to concatenate
> (callback) functions.
Create a custom event and trigger that. That way, you don't even need to
pass in a callback; just trigger("yourevent", [eventargs]) on the element
and jQuery does all the work calling the handlers for you. If there isn't a
Hi jQuerians,
I'm wondering what is the best way to concatenate (callback) functions.
The problem: I call a certain function several times passing in a
function reference that is used as a callback. All callbacks will be
used in one large callback in the end but I cannot build the callback at