> > I've read the prototype API on bind and bindAsEventListener however > their usage just hasn't clicked in my head yet. I'm pretty sure the > answer lies within one of those functions but since I don't 100% > understand those 2, I can't really be sure. >
It's confusing at first (for me anyway), but definitely worth taking the time to understand what binding does. With bind you're telling the function what 'this' is going to refer to when executed. What you're doing with preserving 'this' with the classObject variable is a perfectly fine way of doing it, bind is just an alternate way of doing it (with a function wrapper). bindAsEventListener is exactly the same as bind except the event object will be the first parameter when the function you're binding gets called. Darrin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---