Skip to content

Commit

Permalink
Call update() and render() with a config object (#5592)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix authored and etimberg committed Jun 24, 2018
1 parent a0a195f commit 7cf1323
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/core/core.controller.js
Expand Up @@ -207,7 +207,9 @@ module.exports = function(Chart) {
}

me.stop();
me.update(me.options.responsiveAnimationDuration);
me.update({
duration: me.options.responsiveAnimationDuration
});
}
},

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7cf1323

Please sign in to comment.