Re: JS - Recursion and Closures

Frederick Polgardy
Tue, 27 May 2008 19:48:48 -0000

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
<kangax-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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.