     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

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

  class Comments
    self = this


    do ->
      $('.page-button.next-page a').bindAjaxHandler self.nextPageHandler
      $w.on 'scroll', self.loadNextPage
