 
     initialize: (options) ->
       super options
-      @pluralForms = if options?.singlePost
+      @singlePost = options?.singlePost
+      @pluralForms = if @singlePost
         ["комментарий", "комментария", "комментариев"]
       else
         ["пост", "поста", "постов"]

      "click .delete-selected": "deleteSelected"
      "click .cancel-delete": "cancelDelete"

    MARKED_POST_CLASS: "post-delete-marked"
    MARKED_COMMENT_CLASS: "comment-delete-marked"
    MARKED_SELECTOR:

    hide: ->
      @modal.modal "hide"

    updateMarked: (singlePostMarked = false) ->
      marked = $(@MARKED_SELECTOR).length
      if marked
        @show() unless @isVisible()
        # Special case: at the single post page allow select either
        # engire post or comments.
        if @singlePost
          if singlePostMarked
            $(".#{@MARKED_COMMENT_CLASS}").removeClass(@MARKED_COMMENT_CLASS)
          else
            post = $(".#{@MARKED_POST_CLASS}").removeClass(@MARKED_POST_CLASS)
            marked -= post.length  # Always will be 0 or 1
        forDelete = if singlePostMarked
          "пост"
        else
          utils.pluralForm marked, @pluralForms
        @$(".for-delete").text(forDelete)
      else
        @hide()
