Skip to content

Commit ecc654a

Browse files
committed
Address review comments
1 parent 50be2ce commit ecc654a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/core.scale.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,10 @@ var Scale = Element.extend({
330330

331331
me.afterTickToLabelConversion();
332332

333-
// IMPORTANT: below this point, we consider that `this.ticks` will NEVER change!
334333
me.ticks = labels; // BACKWARD COMPATIBILITY
335334

335+
// IMPORTANT: below this point, we consider that `this.ticks` will NEVER change!
336+
336337
// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)
337338
for (i = 0, ilen = labels.length; i < ilen; ++i) {
338339
ticks[i].label = labels[i];
@@ -437,8 +438,7 @@ var Scale = Element.extend({
437438
},
438439
buildTicks: helpers.noop,
439440
afterBuildTicks: function(ticks) {
440-
var me = this;
441-
return helpers.callback(me.options.afterBuildTicks, [me, ticks]) || ticks;
441+
return helpers.callback(this.options.afterBuildTicks, [this, ticks]) || ticks;
442442
},
443443

444444
beforeTickToLabelConversion: function() {

0 commit comments

Comments
 (0)