title: Coffeescript jQCloud handlers
body: <p>I'm trying to do this in coffeescript,</p>
  
  <p><a href="http://jsfiddle.net/Q6348/8/" rel="nofollow">http://jsfiddle.net/Q6348/8/</a></p>
  
  <p>Specifically I'm trying to add handlers to my jQWordCloud to get the label for the word being clicked on</p>
  
  <p>In my coffeescript version</p>
  
  <pre><code>while i &lt; @counts.length
    x = @counts[i]
    @tag_list.push
      text: x.label
      weight: x.count
      handlers:
        click: -&gt;
          temp = x
          -&gt;
            alert "it worked for " + temp.label
        ()
    ++i
  </code></pre>
  
  <p>I get an unexpected TERMINATOR error presumably because of the (), but if you notice on the jsfiddle, removing that breaks the handler</p>