]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix doughnut sample (#6690)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Tue, 5 Nov 2019 12:10:01 +0000 (04:10 -0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Tue, 5 Nov 2019 12:10:01 +0000 (07:10 -0500)
src/core/core.controller.js

index df71561727121039e5659bc66321c9015517c3d2..ad841ca6ec7f22de64b4b4c3c752b3efc72dc785 100644 (file)
@@ -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