Call update() and render() with a config object (#5592)

This commit is contained in:
Akihiko Kusanagi 2018-06-25 04:31:51 +10:00 committed by Evert Timberg
parent a0a195f353
commit 7cf132316a

View File

@ -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;