On Feb 10, 2008 6:44 PM, anathema <[EMAIL PROTECTED]> wrote:
>
> this is probably going to sound stupid, but what the 'e' represent?
if you are talking about the code kangax posted,
document.observe('click', function(e) {
if (e.findElement('#myLinkId')) myFunction(e);
})
the function in the second argument to document.observe() is anonymous.
its designed to be called at a later point in time. when it does get
called,
it will get a reference passed to it, an event, thats what e is in this
case.
-nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---