From 7cf132316afbabcbbf98db5d3a9178445a683ca4 Mon Sep 17 00:00:00 2001 From: Akihiko Kusanagi Date: Mon, 25 Jun 2018 04:31:51 +1000 Subject: [PATCH] Call update() and render() with a config object (#5592) --- src/core/core.controller.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 3445cb51801..48365fb224d 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -207,7 +207,9 @@ module.exports = function(Chart) { } me.stop(); - me.update(me.options.responsiveAnimationDuration); + me.update({ + duration: me.options.responsiveAnimationDuration + }); } }, @@ -884,7 +886,10 @@ module.exports = function(Chart) { // We only need to render at this point. Updating will cause scales to be // recomputed generating flicker & using more memory than necessary. - me.render(me.options.hover.animationDuration, true); + me.render({ + duration: me.options.hover.animationDuration, + lazy: true + }); } me._bufferedRender = false;