 
 
   timestamp_to_d3: (commit) ->
+    debugger if !commit? or !commit.timestamp?
     commit.timestamp = d3.time.format("%Y-%m-%dT%XZ").parse(commit.timestamp)
   calculate_files_of: (commit) ->
     commit.aggregated_additions = d3.sum(commit.files, (file)-> file[1])

    Repo.render_timeline() if Object.keys(Repo.commits).length > 0

    timeline_chart.render_timeline_chart Repo.commits
    console.log commit.id
    if commit.files?
      Repo.add_files commit.files
      Repo.calculate_files_of commit
      Repo.timestamp_to_d3 commit

    else
      console.log "Shit got sent"

    Repo.parsed_commits++
    console.log("finished: " + Repo.parsed_commits)

do ->
  ls = $('.left.slider')
  rs = $('.right.slider')
  max_width = $('#timeline>svg').innerWidth()
  min_width = 0
  ls_down = false
  rs_down = false
  current_range = []
  down = (e)->
    ls_down = true if (e.data is ls)
    rs_down = true if (e.data is rs)
