[jQuery] Attaching onAfter dynamically

[jQuery] Attaching onAfter dynamically


Hi guys,
i need something similar to the solution on http://malsup.com/jquery/cycle/goto.html,
but with an addition:
i want to be able to call $('#s1').cycle(2) with an onAfter handler
and $('#s1').cycle(3) without it (basically, i want the onAfter to
execute depending on a certain condition)
Thanks in advance