       color: span_color
       'font-size': font_size
       'font-weight': font_weight
-    ).data('uid', uid).appendTo($container)
+    ).data('id', id).appendTo($container)
 
     span_left_end = $span.width() * (-1)
     trajectory_length = parseInt($span.css('left'))

        DEBUG('Danmaku: ERROR: ' + items)
        self.create(text, offline: true)

  report: (target_uid) =>
    self = this
    $.ajax
      url: "//#{self.server}/report"
      dataType: 'jsonp'
      data:
        target_uid: target_uid

  clear: =>
    self = this

$(document).on 'contextmenu', '.danmakuspan', (event) ->
  event.preventDefault()
  $self = $(event.currentTarget)
  target_id = $self.data('id')
  text = $self.text()
  return if not target_id
  message = "“#{text}”\nAre you sure you want to report this danmaku?"
  option = confirm(message)
  return if option != true
  danmaku.report(target_id)
  $self.trigger('click')

$(document).on 'ready', ->
