app/assets/javascripts/highcharts/modules/drilldown.js in highcharts-rails-3.0.8 vs app/assets/javascripts/highcharts/modules/drilldown.js in highcharts-rails-3.0.9

- old
+ new

@@ -144,26 +144,34 @@ }; Chart.prototype.showDrillUpButton = function () { var chart = this, backText = this.getDrilldownBackText(), - buttonOptions = chart.options.drilldown.drillUpButton; + buttonOptions = chart.options.drilldown.drillUpButton, + attr, + states; if (!this.drillUpButton) { + attr = buttonOptions.theme; + states = attr && attr.states; + this.drillUpButton = this.renderer.button( backText, null, null, function () { chart.drillUp(); - } + }, + attr, + states && states.hover, + states && states.select ) - .attr(extend({ + .attr({ align: buttonOptions.position.align, zIndex: 9 - }, buttonOptions.theme)) + }) .add() .align(buttonOptions.position, false, buttonOptions.relativeTo || 'plotBox'); } else { this.drillUpButton.attr({ text: backText @@ -348,10 +356,10 @@ H.Point.prototype.doDrilldown = function () { var series = this.series, chart = series.chart, drilldown = chart.options.drilldown, - i = drilldown.series.length, + i = (drilldown.series || []).length, seriesOptions; while (i-- && !seriesOptions) { if (drilldown.series[i].id === this.drilldown) { seriesOptions = drilldown.series[i];