     ###
      Добавляем события по-умолчанию для контейнеров
     ###
-    @overlay.find('.choco-close').bind 'click', => @close()
+    @overlay.find('.choco-close').on 'click', => @close()
 
     @_prepareActionFor container for container in ['overlay', 'container', 'leftside', 'rightside']
 
-    $(window).bind 'keyup', (event) =>
+    $(window).on 'keyup', (event) =>
       if @overlay.hasClass 'show'
         switch event.keyCode
           when 27    # ESC

    if method
      verify = @[container].attr 'class'

      @[container].bind 'click', (event) =>
        @[method]() if $(event.target).hasClass verify

      if @options.actions[container] is 'close'
        @[container].bind 'mouseenter mouseleave', =>
          @overlay.find('.choco-close').toggleClass 'hover'
    @


                         .replace('{{thumbnail}}', image.thumbnail)
                         .replace('{{title}}', if image.title then ' title="' + image.title + '"' else '')

    @thumbnails.html(content).find('.choco-thumbnail').on 'click', ->
      _this.open toInt $(@).attr('data-cid')

    @overlay.find('.choco-thumbnails-toggle').on 'click', ->
      current = _this.images[_this.current]
      status  = _this.thumbnails.hasClass 'hide'
      method  = if status then 'removeClass' else 'addClass'
