| Ok, it works when I write it like this: var controller = { dispatch: function ( foo, bar, baz ) { return window[foo][bar](baz); } } Now for style... Is the above a 'proper' way to do this? Thanks, Juergen On Sep 14, 2006, at 1:43 PM, Juergen Schreck wrote:
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- [mochikit] Calling functions by 'name' Juergen Schreck
- [mochikit] Re: Calling functions by 'name' Leonardo Soto
- [mochikit] Re: Calling functions by 'name' Juergen Schreck
- [mochikit] Re: Calling functions by 'name' Juergen Schreck
- [mochikit] Re: Calling functions by 'name... Bob Ippolito
- [mochikit] Re: Calling functions by ... Bob Ippolito
- [mochikit] Re: Calling functions... Juergen Schreck
