Habit; did it without thinking. I like wrapping just in case I want to bind my own arguments. Or to quote Hickey: friends don't let friends put behavior in callbacks.

It would be fine without, though.

> On Mar 25, 2014, at 8:03 PM, Justin Searls <notifications@github.com> wrote:
> 
> In app/js/jasmine-given.coffee:
> 
> > @@ -107,6 +107,21 @@
> >          i++
> >        return undefined
> >  
> > +  class Waterfall
> > +    constructor: (functions = [], @finalCallback = ->) ->
> > +      @functions = cloneArray(functions)
> > +
> > +    flow: ->
> > +      return @finalCallback() if @functions.length == 0
> > +      func = @functions.shift()
> > +      if func.length > 0
> > +        func(=> @flow() )
> I missed this part -- what's the point of wrapping the func reference?
> 
> —
> Reply to this email directly or view it on GitHub.