Captain Phalanx wrote: > Hi all, > > i'm trying to dynamicly add starteffects and endeffects to draggables. > The adding works, but the fade effects are using the wrong variable, so > only the last one fades... > > Here is my code: http://pastie.caboo.se/12725 > > Does anyone have any idea how to fix this?
starteffect and endeffect take a parameter which is the dragged element. Just add the parameter in your function definition and use it instead of ElementID in your effects and it should work. -- Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit -~----------~----~----~----~------~----~------~--~---
