Skip to content

Commit eec71bf

Browse files
authored
Fix isRadial is always false (#7037)
1 parent 4462a2c commit eec71bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/core.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ function onAnimationsComplete(ctx) {
136136
const animationOptions = chart.options.animation;
137137

138138
plugins.notify(chart, 'afterRender');
139-
helpers.callback(animationOptions && animationOptions.onComplete, arguments, chart);
139+
helpers.callback(animationOptions && animationOptions.onComplete, [ctx], chart);
140140
}
141141

142142
function onAnimationProgress(ctx) {
143143
const chart = ctx.chart;
144144
const animationOptions = chart.options.animation;
145-
helpers.callback(animationOptions && animationOptions.onProgress, arguments, chart);
145+
helpers.callback(animationOptions && animationOptions.onProgress, [ctx], chart);
146146
}
147147

148148
function isDomSupported() {
@@ -346,7 +346,7 @@ class Chart {
346346
items = items.concat(
347347
Object.keys(scaleOpts).map(function(axisID) {
348348
const axisOptions = scaleOpts[axisID];
349-
const isRadial = axisID.charAt(0).toLowerCase === 'r';
349+
const isRadial = axisID.charAt(0).toLowerCase() === 'r';
350350
const isHorizontal = axisID.charAt(0).toLowerCase() === 'x';
351351
return {
352352
options: axisOptions,

0 commit comments

Comments
 (0)