     do ->
       $d.on 'click', '.media-grid.photos a', self.toggle
       $d.on 'click', '.modal.media-panel .close', self.close
-      $d.keydown self.action
-      $w.resize self.resize
+      $d.on 'keydown', self.action
+      $w.on 'resize', self.resize
 
   class Likes
     self = this

        panel.find('.comments-button.create-comment a').click()

      do ->
        $d.delegate '.comments-button.create-comment a', 'click', self.show
        $d.delegate '.modal.create-comment .username a', 'click', self.reply
        $d.delegate '.modal.create-comment a.tag', 'click', self.tag
        $d.delegate '.modal.create-comment [name="text"]', 'keyup change', self.validate
        $d.delegate '.modal.create-comment [name="cancel"]', 'click', self.hide
        $('.modal.create-comment form').bindAjaxHandler self.handler
        $d.keydown self.action

  class Relationships
    self = this

      $('.likes-button a').bindAjaxHandler self.likesStatusHandler
      $('.likes-button.like a').bindAjaxHandler self.likeHandler
      $('.likes-button.unlike a').bindAjaxHandler self.unlikeHandler
      $d.on 'keydown', self.action

  class Comments
    self = this
