From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 5 Nov 2019 12:10:01 +0000 (-0800) Subject: Fix doughnut sample (#6690) X-Git-Tag: v3.0.0-alpha~268 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83d447f317cebeb8c2445abfc8b5e17e0187e698;p=thirdparty%2FChart.js.git Fix doughnut sample (#6690) --- diff --git a/src/core/core.controller.js b/src/core/core.controller.js index df7156172..ad841ca6e 100644 --- a/src/core/core.controller.js +++ b/src/core/core.controller.js @@ -449,7 +449,7 @@ helpers.extend(Chart.prototype, /** @lends Chart */ { }, /** - * Resets the chart back to it's state before the initial animation + * Resets the chart back to its state before the initial animation */ reset: function() { this.resetElements(); @@ -460,6 +460,8 @@ helpers.extend(Chart.prototype, /** @lends Chart */ { var me = this; var i, ilen; + config = config || {}; + updateConfig(me); // plugins options references might have change, let's invalidate the cache