app/js/lib/views/graph_view.coffee in ela-4.1.5 vs app/js/lib/views/graph_view.coffee in ela-4.1.6

- old
+ new

@@ -39,24 +39,18 @@ if @leftAxisHandler? @guides.push orientation: 'horizontal' attribute: @leftAxisHandler.attribute - if options.graph?.curves? - @curves = options.graph.curves.slice() - @axisLabelingForCurve = @model.curves.find (curve) => - curve.get('function') is @curves[0] - else - @axisLabelingForCurve = @model.curves.first() + @curves = options.graph.curves.slice() if options.graph?.curves? if options.graph?.view @GraphView = options.graph.view.toFunction() else @GraphView = ELA.Views.Graph @displayParams = @model.displayParams[options.name] ?= new @GraphView.Params guides: @guides curves: @curves - axisLabelingForCurve: @axisLabelingForCurve xAxisY: @xAxisY xAxisScale: @xAxisScale yAxisX: @yAxisX yAxisScale: @yAxisScale app: @model