             @brush.x(@scales.x).extent(@brush.extent())
 
             # repaint the scales and the brush
-            @draw()
+            draw()
 
         d3.select(window).on('resize', resize)
 

class TimeSlider

    # TODO
    #  * The @draw function is still accessible from outside
    #  * Allow for the registration of datasets to be shown beneath the brush
    #  * Rename pixelPerDay to something more generic (could also be hours, ... depending on the time frame)
    #  * Cleanup the mess that is the axis labels right now

            @brush.x(@scales.x).extent(@brush.extent())

            # repaint the scales and axis
            draw()

            if @debug
                console.log("Done zooming, took #{new Date().getTime() - time.start.getTime()} milliseconds.")

        d3.select(element).on('DOMMouseScroll', zoom)
        d3.select(element).on('mousewheel', zoom)

    # Function pair to allow for easy hiding and showing the time slider
    hide: ->
