On 6/27/07, Kieran O'Neill <[EMAIL PROTECTED]> wrote: > Out of curiosity, though, how would one pass parameters to a function added > using addLoadEvent? (besides using globals)
With partial: addLoadEvent(partial(alert, "Hi mom")); partial(f, param1, ..., paramN) will give you a new function g, so that: g(x1,...,xM) == f(param1, ..., paramN, x1, ..., xM) Arnar --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
