     text.toFront()
 
   appendAnchor: (top, commit, x, y) ->
-    r = @raphael
+    r = @r
     options = @options
     anchor = r.circle(x, y, 10).attr(
       fill: "#000"


      if cumonth isnt day[1]
        # Months
        r.text(10, @offsetY + mm * 20, day[1])
          .attr(
            font: "12px Monaco, monospace"
            fill: "#EEE"

        element.scrollTop element.scrollTop() + 50  if event.keyCode is 40

  appendLabel: (x, y, refs) ->
    r = @r
    shortrefs = refs
    # Truncate if longer than 15 chars
    shortrefs = shortrefs.substr(0, 15) + "…"  if shortrefs.length > 17
