     mediator.on "lightbox:close",      => @close()
 
   render: ->
+    analytics.track.impression "Lightbox"
+
     $('body').removeClass 'is-loading'
     @$el.removeClass 'is-loading'
     @$el.html lightboxTemplate block: @model, md: md

SmallFeedView = require '../../feed/client/small_feed_view.coffee'
ConnectView = require '../../connect/client/connect_view.coffee'
NewCommentView = require '../../new_comment/client/new_comment_view.coffee'
EditableAttributeView = require '../../editable_attribute/client/editable_attribute_view.coffee'

lightboxTemplate = -> require('../templates/lightbox.jade') arguments...

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

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

