app/assets/javascripts/highcharts/modules/drilldown.js in highcharts-rails-4.1.10 vs app/assets/javascripts/highcharts/modules/drilldown.js in highcharts-rails-4.2.0
- old
+ new
@@ -63,12 +63,12 @@
}
/**
* Handle animation of the color attributes directly
*/
each(['fill', 'stroke'], function (prop) {
- H.addAnimSetter(prop, function (fx) {
- fx.elem.attr(prop, tweenColors(H.Color(fx.start), H.Color(fx.end), fx.pos));
- });
+ H.Fx.prototype[prop + 'Setter'] = function () {
+ this.elem.attr(prop, tweenColors(H.Color(this.start), H.Color(this.end), this.pos));
+ };
});
// Add language
extend(defaultOptions.lang, {
drillUpText: '◁ Back to {series.name}'