Hmms.. nice.. currying :D Thanks Alberto On 7/22/07, Arnar Birgisson <[EMAIL PROTECTED]> wrote: > On 7/22/07, Alberto Simões <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > I am constructing a DIV > > divobj = DIV(...); > > > > now I want to connect an event > > > > connect(divobj, "onclick",openWindow); > > > > but I want to give a special argument to openWindow. > > How can I do this in an easy way? > > connect(divobj, "onclick", partial(openWindow, the_argument)) > > hth, > Arnar >
-- Alberto Simões --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---
