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 @@ -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
142142function 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
148148function 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 ,
You can’t perform that action at this time.
0 commit comments