title: How to pass a function as an argument in Coffeescript
body: <p>I'm a newbie with Coffeescript, and I want to pass a function as an argument to be used as a callback when an animation is complete.  Right now, my "callback" is being run before my animation completes.</p>
  
  <pre><code>  closeItem: ($elem) -&gt;
      @close($elem, @myCallback($elem))
  
    close: ($elem, callback) -&gt;
      $elem.slideUp 300, (-&gt; callback)
  </code></pre>