   constructor: (props) ->
     super props
 
-    @overlay = React.createRef()
+    @overlayRef = React.createRef()
+    @chartAreaRef = React.createRef()
 
     @state =
       isBusy: false

          y: d3.scaleLinear()
        modifiers: ['beatmap-success-rate']

      @_failurePointsChart = new StackedBarChart @refs.chartArea, options
      $(window).on 'throttled-resize.beatmapsetPageInfo', @_failurePointsChart.resize

    @_failurePointsChart.loadData @props.beatmap.failtimes

  # see Modal#hideModal
  dismissEditor: (e) =>
    @setState isEditingDescription: false if e.button == 0 &&
                                  e.target == @overlayRef.current &&
                                  @clickEndTarget == @clickStartTarget


