File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -330,9 +330,10 @@ var Scale = Element.extend({
330
330
331
331
me . afterTickToLabelConversion ( ) ;
332
332
333
- // IMPORTANT: below this point, we consider that `this.ticks` will NEVER change!
334
333
me . ticks = labels ; // BACKWARD COMPATIBILITY
335
334
335
+ // IMPORTANT: below this point, we consider that `this.ticks` will NEVER change!
336
+
336
337
// BACKWARD COMPAT: synchronize `_ticks` with labels (so potentially `this.ticks`)
337
338
for ( i = 0 , ilen = labels . length ; i < ilen ; ++ i ) {
338
339
ticks [ i ] . label = labels [ i ] ;
@@ -437,8 +438,7 @@ var Scale = Element.extend({
437
438
} ,
438
439
buildTicks : helpers . noop ,
439
440
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 ;
442
442
} ,
443
443
444
444
beforeTickToLabelConversion : function ( ) {
You can’t perform that action at this time.
0 commit comments