> So I think you can just get rid of e in line > function fetchData(e, jsonData), giving:
No, that would be true for `bind`, but the whole point of `bindAsEventListener` is that it ensures that the event object arrives as the first parameter to the function, in front of the bound arguments. -- T.J. Crowder Independent Software Engineer tj / crowder software / com www / crowder software / com On Apr 17, 1:10 pm, greg <g...@reservation-net.com> wrote: > The first parameter to bindAsEventListener is the context, then come > the arguments. > So I think you can just get rid of e in line > function fetchData(e, jsonData), giving: > function fetchData(jsonData) -- 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 prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.