app/assets/javascripts/chart_candy/line.coffee in chart-candy-0.0.8 vs app/assets/javascripts/chart_candy/line.coffee in chart-candy-0.0.9
- old
+ new
@@ -30,10 +30,10 @@
return { xData: xData, yData: yData, element: element }
currentStep: () ->
- path = if @tools.find('div.holder-step select') then 'select' else 'div.select-field input'
+ path = if @tools.find('div.holder-step select').length > 0 then 'select' else 'div.select-field input'
return @tools.find('div.holder-step ' + path).val()
drawAxis: (orientation, domain, size, nature, maxTicks) ->