Oh yeah, I think I remember seeing that this was added. It's fairly new in
Prototype isn't it?
On Tue, May 27, 2008 at 2:01 PM, kangax <[EMAIL PROTECTED]> wrote:
>
> Moreover, #each (and most of enumerable methods) accepts "context"
> object as a second argument - since this is such a common need.
>
> SomeComplexDataStructure.DataPart.each( function(DataPart) {
> this.myRecursiveFunction(DataPart);
> }, this );
--
Science answers questions; philosophy questions answers.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---