From: Akihiko Kusanagi Date: Sun, 24 Jun 2018 18:31:51 +0000 (+1000) Subject: Call update() and render() with a config object (#5592) X-Git-Tag: v2.7.3~1^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7cf132316afbabcbbf98db5d3a9178445a683ca4;p=thirdparty%2FChart.js.git Call update() and render() with a config object (#5592) --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index 3445cb518..48365fb22 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;