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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to