coffeescript fat arrow access not parent 'this'

arrow-functions, coffeescript, jquery

Solution

jQuery event handlers get an event object as an argument and that event object has `target` and `currentTarget` properties:

@nav.on 'click', (ev) =>
    @mover @nav.index $(ev.currentTarget)

You might want one of the other properties of `ev` depending on your specific circumstances.

Problem

This works great ``` @nav.on 'click', -> _this.mover _this.nav.index $(@) ``` but I am wondering if I can use a fat arrow instead like this ``` @nav.on 'click', => @mover @nav.index $(????) ``` but what would I put in place of `@` that will result in `this` instead of `_this`?

Original source