Thanks. It's not obvious to all, so I added one of your examples to the doc.

On 6/22/07, Ken Snyder <[EMAIL PROTECTED]> wrote:
> Hi Team,
> I just wanted to make a small documentation request for
> Enumerable.invoke.  I discovered it useful that invoke returns the
> processed array of items.  The docs specify that invoke returns an
> array, but it isn't clear that you can chain two invoke commands to call
> two methods in succession.  See examples below.
> Thanks,
> Ken Snyder
> $$('div.thumbnail')
>   .invoke('observe','mouseover',thumbMouseOver)
>   .invoke('observe','mouseout',thumbMouseOut);
> $$('#windows div.close')
>   .invoke('addClassName','active')
>   .invoke('show');
> >

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to