well at the end it was a mistake the # must be aligned with the for.

I am still new to Coffeescript.



On 19 December 2013 09:34, Rob Loach <notifications@github.com> wrote:

> In src/grunt.plugin.coffee:
>
> > @@ -16,8 +18,22 @@ module.exports = (BasePlugin) ->
> >        populateCollectionsBefore: false
> >        populateCollections: false
> >
> > +    createEventHandlers: (docpad) ->
> > +      for eventName in docpad.getEvents()
> > +        @[eventName] = (opts, next) =>
> > +          if tasks = @getConfig()[eventName] or false
> > +            @processGrunt(tasks, opts, next)
> > +          else
> > +            return next()
> > +          @
> > +    @
>
> It also looks like this @ is inline with the createEventHandlers, and the
> rest of the class functions. This is not intentional, is it?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/RobLoach/docpad-plugin-grunt/pull/6/files#r8463162>
> .
>