title: Trying to call 'this' from click event coffeescript
body: <p>I'm trying to something in canvas respond when clicked. I've added a mousedown event listener to the canvas, from a function, inside of a class <code>Board</code></p>
  
  <pre><code>addEvents : () -&gt;
      @.canvas.addEventListener('mousedown',@.mouseDown)
  mouseDown : (e) -&gt;
      console.log(e,@)
  </code></pre>
  
  <p>The two function above are in the class <code>Board</code>, and when the canvas is clicked, i would like to return board from @, but instead it is returning the canvas.</p>
  
  <p>I've tried changing the event listener/mousedown function to: </p>
  
  <pre><code>addEvents : () -&gt;
      @.canvas.addEventListener('mousedown',(e)-&gt;@.mouseDown(e,@))
  mouseDown : (e,@) -&gt;
      console.log(e,@)
  </code></pre>
  
  <p>but this throws an error of <code>unexpected PARAM_END</code></p>