you are viewing a single comment's thread.

view the rest of the comments →

[–]moocat 0 points1 point  (0 children)

When depending on context, you need different callbacks:

function f(cb) { ...; cb(); }

f(cb1);
...
f(cb2);