         @addMarker idx, hash, rowCls, lineStr
 
   itemClicked: (hash) ->
-  copyClicked: (event) =>
+
+  copyClicked: (event) ->
     hash = event.path[0].getAttribute('data-hash')
     atom.clipboard.write hash
 
-  formateData: (date) ->
+  formateDate: (date) ->
     date = new Date date
     yyyy = date.getFullYear()
     mm = date.getMonth() + 1

    dd = date.getDate()
    dd = "0#{dd}" if dd < 10

    return yyyy + '-' + mm + '-' + dd

  addMarker: (lineNo, hash, rowCls, lineStr) ->
    item = document.createElement('div')
    item.classList.add 'blame-gutter-inner'
    item.classList.add rowCls

    # no need to create objects and events on blank lines
    if lineStr.length > 0
      item.appendChild(@copySpan hash)
      item.appendChild(@wrap lineStr)
      item.addEventListener 'click', => @itemClicked(hash)

    resizeHandle = document.createElement('div')
    resizeHandle.addEventListener 'mousedown', @resizeStarted
    resizeHandle.classList.add 'blame-gutter-handle'

    item.appendChild resizeHandle

    marker = @editor.markBufferRange([[lineNo, 0], [lineNo, 0]])
    @editor.decorateMarker marker, {

        hash = line.rev.replace(/\s.*/, '')

        unless lastHash is hash
          dateStr = @formateDate(line.date)
          lineStr = "#{hash} #{dateStr} #{line.author}"
          if commitCount++ % 2 is 0
            rowCls = 'blame-even'
