   renderTemplate: (@context) ->
     @el.html(@template(@context))
 
-  render: (@context) ->
+  render: (@context, doTransition = true) ->
     @el.html(@template(@context))
 
     data = @context.probs.map (x, i) ->

      .style('stroke', 'none')
      .style('fill', '#9fa8da')
      .style('opacity', 0.5)
      .transition().duration(1000)
        .attrTween('d', tweener(area))
    entering.append('path')
      .attr('class', 'line')
      .style('fill', 'none')
      .style('stroke-width', 2)
      .style('stroke', '#1a237e')
      .transition().duration(1000)
        .attrTween('d', tweener(line))
    entering.append('g')
      .attr('class', 'y axis')

          .attr('cx', (d) -> x(d.x))
          .attr('cy', (d) -> y(d.y))
          .attr('r', 3)
          .attr('fill', '#1a237e')

    @bind()

  bind: =>
    $(window).on('resize',  _.debounce( =>
      @render(@context, 0)
    , 300))


