Skip to content

Commit

Permalink
Ticks callback is now called with this as scope (#4632)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig authored and simonbrunel committed Aug 13, 2017
1 parent 4697226 commit 3e2b405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.scale.js
Original file line number Diff line number Diff line change
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 3e2b405

Please sign in to comment.