Skip to content

Commit

Permalink
Ticks callback is now called with this as scope (chartjs#4632)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored and yofreke committed Dec 30, 2017
1 parent a3a0d1d commit 72a644f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.scale.js
Expand Up @@ -298,7 +298,7 @@ module.exports = function(Chart) {
var me = this;
// Convert ticks to strings
var tickOpts = me.options.ticks;
me.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback);
me.ticks = me.ticks.map(tickOpts.userCallback || tickOpts.callback, this);
},
afterTickToLabelConversion: function() {
helpers.callback(this.options.afterTickToLabelConversion, [this]);
Expand Down

0 comments on commit 72a644f

Please sign in to comment.