 SmallFeedView = require '../../feed/client/small_feed_view.coffee'
 ConnectView = require '../../connect/client/connect_view.coffee'
 NewCommentView = require '../../new_comment/client/new_comment_view.coffee'
+analytics = require '../../../lib/analytics.coffee'
 EditableAttributeView = require '../../editable_attribute/client/editable_attribute_view.coffee'
 
 lightboxTemplate = -> require('../templates/lightbox.jade') arguments...

    mediator.on "lightbox:close",      => @close()

  render: ->
    $('body').removeClass 'is-loading'
    @$el.removeClass 'is-loading'
    @$el.html lightboxTemplate block: @model, md: md

    @initialXHR = @model.fetch success: => @render()

  cancelRequests: ->
    @initialXHR.abort() if @initialXHR.readyState > 0 && @initialXHR.readyState < 4
    @feedView.cancelRequest()

