title: Translate this jquery into coffee script?
body: <p>I'm unsure how to structure the following. This works fine:</p>
  
  <pre><code>  $('.hover li').on 'hover', (ev) -&gt;
      $(this).addClass('active')
  </code></pre>
  
  <p>I know I can use 'toggle' instead of 'addClass', but for other reasons I need a handler out function passed. So I tried this:</p>
  
  <pre><code>  $('.element').on 'hover', (ev)
      -&gt; $(this).addClass('active'),
      -&gt; $(this).removeClass('active')
  </code></pre>
  
  <p>This returns an error - 'unexpected ,'. I've tried other variations, and most of the examples I've found online do not use the <code>.on 'hover' (ev) -&gt;</code> format.</p>