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 silverspectro committed Aug 21, 2017
1 parent 6eabd54 commit 14a2d95
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 14a2d95

Please sign in to comment.